于 2011/11/20 0:26, Zygmunt Ptak 写道: > On 19.11.2011 16:05, xunxun wrote: >> 于 2011/11/19 18:10, Zygmunt Ptak 写道: >>> Dlls in /opt/cross-compilers/i686-w32-mingw32/i686-w32-mingw32/lib: >>> libgcc_s_sjlj-1.dll libquadmath-0.dll libssp-0.dll libstdc++-6.dll >>> >>> PS: >>> 1) i trying compile with -lstdc++, or with -lstdc++-6, but nothing... >>> 2) and i tried link with libstdc++-6.dll without -l option, and i get >>> the same error >> You must make sure that libstdc++.dll.a exists, not libstdc++-6.dll. >> > > libstdc++-6.dll libstdc++.a libstdc++.dll.a libstdc++.dll.a-gdb.py > libstdc++.la > > Maybe you want check packages? For ArchLinux, but shuld work on any > linux distro... > > http://czlug.icis.pcz.pl/~zygmunt/packages > > PS: i have added bin path in PATH Your directory is strange.
Can you type g++ test.cpp -v to output your library search path? Or copy your all files of opt\cross-compilers\i686-w32-mingw32\i686-w32-mingw32\lib\ to opt\cross-compilers\i686-w32-mingw32\lib\gcc\i686-w32-mingw32\4.6.2\ -- Best Regards, xunxun ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
