-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
.
精彩评论