I am using the Pelles C IDE and for certain projects have to tell the linker to include a certain library e.g. Ws2_32.lib. Currently I am developing a function I plant to reuse frequently throughout numerous projects, so I decided to make a header file for it. Is there a way to tell the linker to include a certain library from the header file ?
I am using the Pelles C IDE and for certain projects have to tell
Share
You have link the library, no other way.
If compiler is gcc in linux, you can link the lirary
libtemp.solikegcc youfile.c -ltempAnd before running the executable add the path of
libtemp.sotoLD_LIBRARY_PATHIn your IDE you can config the samething.