开发者

-l: option via Eclipse

开发者 https://www.devze.com 2023-03-31 22:12 出处:网络
When I write lib names in properties in Eclipce it uses -l option, that is replaced by if we wrote -lsomelib to -l:libsomelib.a. How can 开发者_JS百科I manage to use -l: option, bacause I don\'t want

When I write lib names in properties in Eclipce it uses -l option, that is replaced by if we wrote -lsomelib to -l:libsomelib.a. How can 开发者_JS百科I manage to use -l: option, bacause I don't want lib-prefix be added to the file name and I want to link *.lib file


On Windows, GCC static libraries use the form lib<name>.a, hence why the -l arguments are being translated as such. If you wish to override this behaviour, use the full file name of the library to link against, e.g. gcc main.c mylibrary.a.

0

精彩评论

暂无评论...
验证码 换一张
取 消