From: Jeff S. <js...@om...> - 2002-05-13 16:06:18
|
On Mon, 13 May 2002 RDa...@ao... wrote: > Thank you so much, that did the trick. > > One final question/thought: > I've been working with GCC under UNIX, as well as other C/C++ compilers > for UNIX or Win32, for years and I have never found an occasion where > the order of the compiler/linker arguments have mattered. Perhaps I've been > lucky that my coding never involved a great deal of complexity that > warranted such. If indeed order matters, as evidenced by this issue, > then shouldn't the documentation reflect that as such? You must be a youngster to UNIX then :) Anyone developing C on UNIX ten years or so ago might remember how fickle libraries were about search order. Recently, ELF and shared libs have become the norm, and behave very differently than when linking static libraries. For one thing shared libs are an all-or-nothing situation: either the entire libarary is loaded or it isn't loaded at all. For another, actual name resolution takes place at runtime rather than link time. Since mingw is not an ELF platform and uses ar-style static import libraries, forget what I said about ELF. Jeff |