| [news.eclipse.tools.cdt] Re: CDT static library project's linking options? |
I've just switched to using Eclipse on Windows. I'm working on a static library project that links against SDL and OpenGL. The project compiles fine, but then I'm given "undefined reference" error messages for the calls to functions of said libraries.A static library doesn't link with anything. In fact, it is not linked at all, it is just an archive of object files, created using 'ar'. That is why there are no linking options.
This is not surprising: for executable projects, there is the Project -> Properties -> C/C++ Build -> Settings -> Tool Settings -> MinGW linker option, but I couldn't find the same in a static library project. Where is it, how does it work?
(note: it's a repost from eclipse.newcomer, where someone has pointed out that linker flags can be sneaked in under Project -> Properties -> C/C++ Build -> Miscellaneous -> flags - that's a start, I'd appreciate a nudge in the direction of anything more sophisticated.)
-- Derek