From: Jeremie Petit <jeremie_petit@geocities.com>
Subject: Re: cxx std library problem?
Date: 2000/12/06 [thread overview]
Message-ID: <3A2E1F85.DEA6D4F6@geocities.com> (raw)
In-Reply-To: 3A2D2B94.29098772@geneprot.com
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.
> >
next prev parent reply other threads:[~2000-12-06 5:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-05 7:59 cxx std library problem? Alexandre Masselot
2000-12-05 5:00 ` Alexandre Masselot
2000-12-05 5:00 ` Jeremie Petit
2000-12-05 5:00 ` Alexandre Masselot
2000-12-06 5:00 ` Jeremie Petit [this message]
2000-12-11 8:34 ` Alexandre Masselot
2000-12-06 7:49 ` Rajanish Calisa
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox