From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,241184c81eab5c68 X-Google-Attributes: gidfa528,public From: Jeremie Petit Subject: Re: cxx std library problem? Date: 2000/12/06 Message-ID: <3A2E1F85.DEA6D4F6@geocities.com>#1/1 X-Deja-AN: 701714769 Content-Transfer-Encoding: 7bit References: <3A2CA06A.73D23345@geneprot.com> <3A2CA292.CEA3E6EF@geneprot.com> <3A2CD192.7D6F40F2@geocities.com> <3A2D2B94.29098772@geneprot.com> X-Accept-Language: fr, en Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@mailint03.im.hou.compaq.com X-Trace: mailint03.im.hou.compaq.com 976101462 27552 16.188.155.241 (6 Dec 2000 11:17:42 GMT) Organization: Compaq Computer Corp. Mime-Version: 1.0 NNTP-Posting-Date: 6 Dec 2000 11:17:42 GMT Newsgroups: comp.unix.tru64 Hello Alex, it's possible that the compiler can't instantiate the template because it doesn't find the implementation file for it. Try adding '-I/usr/include/cxx -I/usr/include' before all other '-I' statements and try again after a good clean. This *should not* be the problem, but who knows ? Furthermore, could you indicate which version of cxx you're using ? Templates instantiation is very different from versions 5.x to 6.x. Can you also apply /bin/nm on all the object files you're linking with (either .so or .o) in order to find references to the symbol you're missing ? (it should look like "/bin/nm file.o | grep 'std::basic_string'" or something like that) This will allow knowing which file requires the symbol (it will be flagged as 'U' meaning undefined in the nm output). Cheers, Jeremie. Alexandre Masselot wrote: > Sorry, mpiCC is only a script call cxx with some flags. > here there are id I verbose the command > > compilation > cxx -DUSE_STDARG -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 > -DHAVE_STDARG_H=1 -DUSE_STDARG=1 -DMALLOC_RET_VOID=1 > -I/export/home/mochi/masselot/mpich/mpich-1.2.1/include -DHAVE_MPI_CPP > -I/export/home/mochi/masselot/mpich/mpich-1.2.1/include/mpi2c++ -O3 > -I/home/mochi/masselot/c++/lib/newran > -I/home/mochi/masselot/c++/lib/MpiBasic > -I/home/mochi/masselot/mpich/mpich-1.2.1include/ > -I/home/mochi/masselot/c++/lib/RobustLinearRegression > -I/home/mochi/masselot/c++/lib/MpiBasic -I/home/mochi/masselot/c++/lib/ > -I. -Dbool_LIB -D__USE_STD_IOSTREAM -c peptid2.cpp > > link > cxx -DUSE_STDARG -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 > -DHAVE_STDARG_H=1 -DUSE_STDARG=1 -DMALLOC_RET_VOID=1 > -L/export/home/mochi/masselot/mpich/mpich-1.2.1/lib peptid2.o > WIDBPeptid1.o WIDataBase.o WIPeptid1.o WIClient.o ProtExp1.o > WIMatchDataBase.o WIMultiMatch.o WIMatch.o WIDBElement.o WIExpData.o -o > peptid2 -L/home/mochi/masselot/c++/lib -lm -lRobustLinearRegression-cxx > -lSocketServer-cxx -lMpiBasic-cxx -lnewran-cxx -lpmpich++ -lmpich -laio > > thanks for the help > Alex > > Jeremie Petit wrote: > > > > Hello Alex, > > > > can you indicate what are your compilation flags exactly ? Show one > > compilation line, and one link line for example. It could help > > understand the problem. > > > > Cheers, > > > > Jeremie. > >