开发者

-l: option via Eclipse

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜