User forums > Using Code::Blocks
Building a library with Microsofts lib.exe
dennosaurus:
:(I am attempting to build a static library using Microsoft's lib.exe in Code Blocks. Code Blocks insists on adding the link libraries and options to the lib.exe command, thus ruining my build. Lib.exe is not link.exe and none of the link libraries or options should appear in the lib.exe command. Lib.exe has it's own set of commands. Is there any way I can stop Code Blocks from doing this?
oBFusCATed:
What is the type of the project? (Project -> Properties -> Build Targets -> Type)
dennosaurus:
Type of project is Library.
dennosaurus:
Type of project is Static Library. Build software is Microsoft 2010 x32.
dennosaurus:
I have also created a Static Library target that uses Microsoft's VC6 build software. This uses link.exe to build the library and requires the link option -LIB. Code Blocks adds /LIB instead of -LIB, causing an error. It also is adding the global link libraries, library paths, and options to the command which it should not do.
Navigation
[0] Message Index
[#] Next page
Go to full version