From: Keith M. <kei...@to...> - 2006-12-05 12:34:16
|
Brian Dessent wrote: > Ed wrote: > > http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/gnu-linker/win32.html >> >>> Look for the part that begins: >>> | For instance, when ld is called with the argument -lxxx it will >>> attempt to find >> >> Thanks, that's a great reference and I have been reading it closely. > > Just FYI, that is the standard binutils manual, but on redhat's site. > The version there is bound to be old and out of date as it corresponds > to whatever they shipped with RHEL4 which was ages ago. The canonical > binutils documentation is on sourceware.org: > > http://sourceware.org/binutils/ > http://sourceware.org/binutils/docs-2.17/ld/WIN32.html And for the record, neither reference is accurate, (or at least complete), in respect of the library search order, for neither mentions that xxx.lib will also be considered as an alternative to libxxx.a :-( http://sourceware.org/binutils/docs-2.17/ld/WIN32.html says: |For instance, when ld is called with the argument `-lxxx' it will attempt |to find, in the first directory of its search path, | | libxxx.dll.a | xxx.dll.a | libxxx.a | cygxxx.dll (*) | libxxx.dll | xxx.dll Some experimentation suggests that this *should* be: libxxx.dll.a xxx.dll.a libxxx.a xxx.lib cygxxx.dll (*) libxxx.dll xxx.dll Regards, Keith. |