[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.cdt] Re: CDT static library project's linking options?

Derek wrote:

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.

I'm really confused now; using the -l switches does make the "undefined reference" errors go away (also, in xcode, in the OSX version of the library I link against SDL and OpenGL too, and it works just fine). I haven't got it in front of me, but as far as I can remember, the executable project has to link against the same libraries (OS X), however under Windows (in Eclipse), only the -l switches help. What's happening then?