Thanks Lincoln, libsupc++.a library is the answer ! -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Liu Song.7 (Nokia-MP/Beijing) Sent: Monday, October 08, 2012 2:16 PM To: [email protected]; [email protected] Subject: Re: [Development] Using gcc to build arm version
Another thing: it seems that the libstdc++.so is based on Linux OS, so it can't be used for target build... So for the gcc/g++, is there a standalone library for c++ support ? Thanks, Song -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Liu Song.7 (Nokia-MP/Beijing) Sent: Monday, October 08, 2012 1:38 PM To: [email protected]; [email protected] Subject: Re: [Development] Using gcc to build arm version readelf -s -W libsupc++.a | grep UND, still shows: _ZTVN10__cxxabiv120__si_class_type_infoE _ZTVN10__cxxabiv121__vmi_class_type_infoE _ZTVN10__cxxabiv117__class_type_infoE Thanks, Song -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of ext Thiago Macieira Sent: Monday, October 08, 2012 1:24 PM To: [email protected] Subject: Re: [Development] Using gcc to build arm version On segunda-feira, 8 de outubro de 2012 15.18.10, Lincoln Ramsay wrote: > On 08/10/12 15:09, [email protected] wrote: > > collect2 (4.4.1) is used to link. > > If you're linking something that includes C++ you should really use > g++ as the linker. > > If you're going to invoke ld directly, you need to ensure the > appropriate flags are set so it includes the C++ runtime. > > Apparently the library you want is libsupc++.a and it'll be somewhere > in your toolchain/sysroot directory. libsupc++.a is included in libstdc++.so, which comes with most GCC installations. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center _______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development _______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development _______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
