Hi,
according to <http://gcc.gnu.org/ml/gcc-help/2009-06/msg00324.html> you've probably selected an incompatible libstdc++. Running g++ with -v should tell you which libstdc++ it takes; also you should not need the -L/usr/lib/gcc/x86_64-redhat-linux/4.1.1
Anyway - none of this is connected to ROOT, I'm just forwarding your questions to google here...
Cheers, Axel.
Jean-Philippe Guillet wrote on 10/29/2009 01:38 PM:
> Thanks for your prompt answer but it does not solve my problem. Indeed,
> I have linked the stdc++ library : c.f. the line
> -L/usr/lib/gcc/x86_64-redhat-linux/4.1.1 -lstdc++
>
> Nevertheless, I followed your suggestion : I used g++ as the linker, so
> I had to add a library for g95 (parts of my program have been compiled
> with g95), the result is the following:
>
> g95 -c -o further_param.o -O ../src/histo/perlmod/further_param.f
> g++ -c -o remplie.o -O -Wall -fPIC -pthread -m64
> -I/opt/local/include/root ../src/histo/perlmod/remplie.cxx
> g++ -c -o init_root.o -O -Wall -fPIC -pthread -m64
> -I/opt/local/include/root ../src/histo/perlmod/init_root.cxx
> g++ -c -o end_root.o -O -Wall -fPIC -pthread -m64
> -I/opt/local/include/root ../src/histo/perlmod/end_root.cxx
> g++ -O -m64 -o onephot_test3.exe ftn_c.o onephot_jet_histo.o
> histo_selection_jet.o isolement.o jet_definition.o
> doubletosingled_histo.o further_param.o doubletosingleo_histo.o
> remplissage.o remplie.o init_root.o end_root.o alfas_lhapdf.o
> distfunb_lhapdf.o param_lhapdf.o secteff.o alfa_qed.o choiscale.o
> charnum.o modified_trig.o htermone_jet.o crossone_jet.o onephotd_jet.o
> dir_phot_jet.o h12one_jet.o h13one_jet.o h23one_jet.o h14one_jet.o
> h24one_jet.o h34one_jet.o consone_jet.o htermtwo_jet.o crosstwo_jet.o
> onephoto_jet.o one_phot_jet.o h12two_jet.o h13two_jet.o h23two_jet.o
> h14two_jet.o h24two_jet.o h34two_jet.o constwo_jet.o fragmentation.o
> fonfra_inter2.o distribPert.o distribNonPert_setII.o
> distribNonPert_setI.o locate.o polin2.o polint.o fragfun_all.o bkk.o
> kkp.o pkhff.o grille_had_charged.o akk08.o ffakk.o akk.o fDSS.o
> hknsff07v2.o hknsffwrapper.o vecsum.o vecaddmulcons.o vecaddvec.o
> vecinit.o vecmuladd.o vecmulcons.o vecmulsub.o vecmulvec.o pdfa.o
> eks98.o nDS.o npdf04.o eps08.o \
> -L../basesv5.1 -lbases \
> `/cern/pro/bin/cernlib packlib mathlib`
> /home/LAPPSL4-houches/lhapdf/lib/libLHAPDF.so \
>
> -L/LINUX/LAPPSL4/G95/x86-64_int32/g95-install/lib/gcc-lib/x86_64-suse-linux-gnu/4.0.3
> -lf95 -L/usr/lib/gcc/x86_64-redhat-linux/4.1.1 -lgfortran
> -L/opt/local/lib/root -lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d
> -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread
> -pthread -lm -ldl -rdynamic
> /usr/lib/gcc/x86_64-redhat-linux/4.1.1/libstdc++.so: undefined reference
> to `_Unwind_GetIPInfo_at_GCC_4.2.0'
> collect2: ld returned 1 exit status
> make: *** [onephot_test3] Error 1
>
> still, something is missing
>
> regards
> Jean-Philippe
>
> Le 29/10/2009 11:51, Axel Naumann a écrit :
>> Hi, >> >> you are using the fortran linker so you'll have to add -lstdc++. Or >> use g++ to link and add the fortran lib -lf2c or -lgfortran, depending >> on the version of GCC. >> >> Cheers, Axel. >> >> Jean-Philippe Guillet wrote on 10/29/2009 11:36 AM: >>> Hello, >>> I installed root v5-24-00-patch on a Dell x86_64 computer using >>> SL5.2. I wanted to link the root library to my fortran program, after >>> running make, I got: >>> g95 -c -o further_param.o -O ../src/histo/perlmod/further_param.f >>> g++ -c -o remplie.o -O -Wall -fPIC -pthread -m64 >>> -I/opt/local/include/root ../src/histo/perlmod/remplie.cxx >>> g++ -c -o init_root.o -O -Wall -fPIC -pthread -m64 >>> -I/opt/local/include/root ../src/histo/perlmod/init_root.cxx >>> g++ -c -o end_root.o -O -Wall -fPIC -pthread -m64 >>> -I/opt/local/include/root ../src/histo/perlmod/end_root.cxx >>> g95 -O -m64 -o onephot_test3.exe ftn_c.o onephot_jet_histo.o >>> histo_selection_jet.o isolement.o jet_definition.o >>> doubletosingled_histo.o further_param.o doubletosingleo_histo.o >>> remplissage.o remplie.o init_root.o end_root.o alfas_lhapdf.o >>> distfunb_lhapdf.o param_lhapdf.o secteff.o alfa_qed.o choiscale.o >>> charnum.o modified_trig.o htermone_jet.o crossone_jet.o >>> onephotd_jet.o dir_phot_jet.o h12one_jet.o h13one_jet.o h23one_jet.o >>> h14one_jet.o h24one_jet.o h34one_jet.o consone_jet.o htermtwo_jet.o >>> crosstwo_jet.o onephoto_jet.o one_phot_jet.o h12two_jet.o >>> h13two_jet.o h23two_jet.o h14two_jet.o h24two_jet.o h34two_jet.o >>> constwo_jet.o fragmentation.o fonfra_inter2.o distribPert.o >>> distribNonPert_setII.o distribNonPert_setI.o locate.o polin2.o >>> polint.o fragfun_all.o bkk.o kkp.o pkhff.o grille_had_charged.o >>> akk08.o ffakk.o akk.o fDSS.o hknsff07v2.o hknsffwrapper.o vecsum.o >>> vecaddmulcons.o vecaddvec.o vecinit.o vecmuladd.o vecmulcons.o >>> vecmulsub.o vecmulvec.o pdfa.o eks98.o nDS.o npdf04.o eps08.o \ >>> -L../basesv5.1 -lbases \ >>> `/cern/pro/bin/cernlib packlib mathlib` >>> /home/LAPPSL4-houches/lhapdf/lib/libLHAPDF.so \ >>> -L/usr/lib/gcc/x86_64-redhat-linux/3.4.6 -lg2c >>> -L/usr/lib/gcc/x86_64-redhat-linux/4.1.1 -lgfortran >>> -L/usr/lib/gcc/x86_64-redhat-linux/4.1.1 -lstdc++ >>> -L/opt/local/lib/root -lCore -lCint -lRIO -lNet -lHist -lGraf >>> -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics >>> -lMathCore -lThread -pthread -lm -ldl -rdynamic >>> /opt/local/lib/root/libCint.so: undefined reference to >>> `_ZNSi6ignoreEl_at_GLIBCXX_3.4.5' >>> /opt/local/lib/root/libCint.so: undefined reference to >>> `__cxa_get_exception_ptr_at_CXXABI_1.3.1' >>> /opt/local/lib/root/libCint.so: undefined reference to >>> `_ZNSi6ignoreEv_at_GLIBCXX_3.4.5' >>> make: *** [onephot_test3] Error 1 >>> >>> I guess that a library is missing in my link, but I tried to search >>> on the web and I was not able to find something. >>> >>> Thank you in advance >>> >>> Jean-Philippe Guillet >>> >>>
This archive was generated by hypermail 2.2.0 : Thu Oct 29 2009 - 17:50:02 CET