On 9/6/2010 19:40, Xiaofan Chen wrote: > On Mon, Sep 6, 2010 at 7:26 PM, JonY<[email protected]> wrote: >> Are you using a multilib setup? There should not be a lib64 directory around >> for non-multilib toolchains. > > I have tried different binary downloads. The one from MinGW-w64 Sourceforge > site and the one from http://www.drangon.org/mingw/ both are not > multilib setup, both have a few files inside lib64. > > I also just tried TDM64 and it does not have lib64 directory, so I need > to copy the lib directory to lib64 directory. >
I am not familiar with TDM's builds. TDM, if you're around, can you comment on this? >> If you are using a multilib setup, lib is where the arch default libraries >> are. For x86_64-w64-mingw32, lib points to lib64. > > I see. > > Are you saying the problem is a libtool problem? How does it > differentiate multilib or not? > Libtool gets a list of directories to search from the compiler itself. It will scan the directories for files before constructing an appropriate command for the compiler driver. Unfortunately it does not know about multilib (-m32/-m64) and relies on gcc's default search path, augmented by user provided -L search paths, AFAIK. To be safe, just make sure the files in lib and lib64 are identical for win64 target gcc. >> I'm curious what your lib64 directory contains. >> > > Eg: from sezero's private build. > > D:\MinGW-w64\mingw64\x86_64-w64-mingw32\lib64>dir/w > > [.] [..] libgcc_s.a > libgfortran.la libgomp.a libgomp.dll.a > libobjc.a libobjc.dll.a libobjc.la > libssp_nonshared.a libssp_nonshared.la libstdc++.a > > Those files are a sign that --enable-version-specific-runtime-libs was not use. What does x86-w64-mingw32-gcc -v say? ------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
