Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* Re: cxx std library problem?
  2000-12-05  5:00   ` Jeremie Petit
@ 2000-12-05  5:00     ` Alexandre Masselot
  2000-12-06  5:00       ` Jeremie Petit
  0 siblings, 1 reply; 7+ messages in thread
From: Alexandre Masselot @ 2000-12-05  5:00 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 1411 bytes --]

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.
>

[-- Attachment #2: Card for Alexandre Masselot --]
[-- Type: text/x-vcard, Size: 311 bytes --]

begin:vcard 
n:Masselot;Alexandre
tel;cell:+41 79 507 63 66
tel;work:+41 22 702 99 81
x-mozilla-html:FALSE
version:2.1
email;internet:alexandre.masselot@bigfoot.com
adr;quoted-printable:;;GeneBio=0D=0A25, avenue de Champel=0D=0A1206 Gen=E8ve;;;;Switzerland
x-mozilla-cpt:;-26112
fn:Alexandre Masselot
end:vcard

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: cxx std library problem?
  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-06  7:49 ` Rajanish Calisa
  1 sibling, 1 reply; 7+ messages in thread
From: Alexandre Masselot @ 2000-12-05  5:00 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 206 bytes --]

Oups, sorry, I've forgot to precise
Tru64 5.1 or 5.0 (i've tried both)
Compaq C++ V6.2-033 for Compaq Tru64 UNIX V5.0A (Rev. 1094)

do you think I might try a more recent (even if beta) release

thanks
Alex

[-- Attachment #2: Card for Alexandre Masselot --]
[-- Type: text/x-vcard, Size: 311 bytes --]

begin:vcard 
n:Masselot;Alexandre
tel;cell:+41 79 507 63 66
tel;work:+41 22 702 99 81
x-mozilla-html:FALSE
version:2.1
email;internet:alexandre.masselot@bigfoot.com
adr;quoted-printable:;;GeneBio=0D=0A25, avenue de Champel=0D=0A1206 Gen=E8ve;;;;Switzerland
x-mozilla-cpt:;-26112
fn:Alexandre Masselot
end:vcard

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: cxx std library problem?
  2000-12-05  5:00 ` Alexandre Masselot
@ 2000-12-05  5:00   ` Jeremie Petit
  2000-12-05  5:00     ` Alexandre Masselot
  0 siblings, 1 reply; 7+ messages in thread
From: Jeremie Petit @ 2000-12-05  5:00 UTC (permalink / raw)


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.

Alexandre Masselot wrote:

> Oups, sorry, I've forgot to precise
> Tru64 5.1 or 5.0 (i've tried both)
> Compaq C++ V6.2-033 for Compaq Tru64 UNIX V5.0A (Rev. 1094)
>
> do you think I might try a more recent (even if beta) release
>
> thanks
> Alex




^ permalink raw reply	[flat|nested] 7+ messages in thread

* cxx std library problem?
@ 2000-12-05  7:59 Alexandre Masselot
  2000-12-05  5:00 ` Alexandre Masselot
  2000-12-06  7:49 ` Rajanish Calisa
  0 siblings, 2 replies; 7+ messages in thread
From: Alexandre Masselot @ 2000-12-05  7:59 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 1651 bytes --]

Hello,

I'm rather new to Alpha, but after a week trying to get rid of a
problem, I'm going to you.

I'm using mpich (MPI distribution) over a cluster of Alpha.
The code compiles well on Linux x86, either with Kai c++ or g++.

porting it to alpha with cxx, any of my separated libraries compile and
run well on test case its side.

When I try to link the main program, the linker return me only this nice
little message:

> /home/mochi/masselot/mpich/mpich-1.2.1/bin/mpiCC -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
> /home/mochi/masselot/mpich/mpich-1.2.1/bin/mpiCC -o peptid2  
> -L/home/mochi/masselot/c++/lib -lm -lRobustLinearRegression-cxx
> -lSocketServer-cxx -lMpiBasic-cxx -lnewran-cxx WIDBPeptid1.o
> WIDataBase.o WIPeptid1.o WIClient.o ProtExp1.o WIMatchDataBase.o
> WIMultiMatch.o WIMatch.o WIDBElement.o WIExpData.o peptid2.o
> ld:
> Unresolved:
> std::basic_string<char, std::char_traits<char>, std::allocator<char>
> >::replace(unsigned long, unsigned long, unsigned long, char)
> *** Exit 1
> Stop.
> 

I don't call myself this basic_string::replace method, but certainly mpi
or someone else, so I cannot get rid of it easily.
Moreover, it seems to me that such a method is standard (cf Stroudstrup
20.3.12 in the third edition) but I cannot find it when I try nm
/usr/lib/libcxxstd.a.

Any one can help me on this point?

best regards

Alexandre MAsselot

[-- Attachment #2: Card for Alexandre Masselot --]
[-- Type: text/x-vcard, Size: 311 bytes --]

begin:vcard 
n:Masselot;Alexandre
tel;cell:+41 79 507 63 66
tel;work:+41 22 702 99 81
x-mozilla-html:FALSE
version:2.1
email;internet:alexandre.masselot@bigfoot.com
adr;quoted-printable:;;GeneBio=0D=0A25, avenue de Champel=0D=0A1206 Gen=E8ve;;;;Switzerland
x-mozilla-cpt:;-26112
fn:Alexandre Masselot
end:vcard

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: cxx std library problem?
  2000-12-05  5:00     ` Alexandre Masselot
@ 2000-12-06  5:00       ` Jeremie Petit
  2000-12-11  8:34         ` Alexandre Masselot
  0 siblings, 1 reply; 7+ messages in thread
From: Jeremie Petit @ 2000-12-06  5:00 UTC (permalink / raw)


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.
> >




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: cxx std library problem?
  2000-12-05  7:59 cxx std library problem? Alexandre Masselot
  2000-12-05  5:00 ` Alexandre Masselot
@ 2000-12-06  7:49 ` Rajanish Calisa
  1 sibling, 0 replies; 7+ messages in thread
From: Rajanish Calisa @ 2000-12-06  7:49 UTC (permalink / raw)


>
> > ld:
> > Unresolved:
> > std::basic_string<char, std::char_traits<char>, std::allocator<char>
> > >::replace(unsigned long, unsigned long, unsigned long, char)
> > *** Exit 1
> > Stop.
> >
>
> I don't call myself this basic_string::replace method, but certainly mpi
> or someone else, so I cannot get rid of it easily.
> Moreover, it seems to me that such a method is standard (cf Stroudstrup

As far as I know, the headers that come with DEC C++ have a bunch of
pragmas that will instruct the compiler not to instantiate some of the
commonly used templates. Check if you are using "cxx" to line or
"ld" to link, in the later case, you do not link with libcxxstd.so. That
would
then explain the error that your are getting. You can also recompile your
entire application with __FORCE_INSTANTIATIONS to force the
exclusion of the pragmas.

> 20.3.12 in the third edition) but I cannot find it when I try nm
> /usr/lib/libcxxstd.a
>
Try /usr/shlib/libcxxstd.so or /usr/lib/cmplrs/cxx/libcxxstd.so

Hope this helps.

rajanish...





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: cxx std library problem?
  2000-12-06  5:00       ` Jeremie Petit
@ 2000-12-11  8:34         ` Alexandre Masselot
  0 siblings, 0 replies; 7+ messages in thread
From: Alexandre Masselot @ 2000-12-11  8:34 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 447 bytes --]

Hi Jeremie,

Thanks for the help.

I've located the source of the problem (a line call  s+=c  - where
string s; char c;- is responsible for calling the
basic_string::replace(long unsigned, long unsigned, long unsigned, char
c) method)
There is still a problem as I can link my .o file file simple examples
but not with larger ones (even if I recompile everything with all the
features given in this thread).



I'll try to go around this bug

Alex

[-- Attachment #2: Card for Alexandre Masselot --]
[-- Type: text/x-vcard, Size: 311 bytes --]

begin:vcard 
n:Masselot;Alexandre
tel;cell:+41 79 507 63 66
tel;work:+41 22 702 99 81
x-mozilla-html:FALSE
version:2.1
email;internet:alexandre.masselot@bigfoot.com
adr;quoted-printable:;;GeneBio=0D=0A25, avenue de Champel=0D=0A1206 Gen=E8ve;;;;Switzerland
x-mozilla-cpt:;-26112
fn:Alexandre Masselot
end:vcard

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2000-12-11  8:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2000-12-11  8:34         ` Alexandre Masselot
2000-12-06  7:49 ` Rajanish Calisa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox