User forums > Using Code::Blocks

Building a library with Microsofts lib.exe

<< < (2/2)

zabzonk:
The link.exe command, like all MS programs, uses slashes to indicate options, so /LIB is correct.

dennosaurus:
The solution. I created a new compiler entry in Settings/ which is a copy of the compiler entry I was using and named it Library compiler. Then I removed the link libraries, link options, and linker paths from the Library compiler. By using this compiler in my target I get a reasonable lib.exe command. Lib.exe still complains about the /LIB option that Codeblocks adds but it builds correctly.

Navigation

[0] Message Index

[*] Previous page

Go to full version