On Tue, Jul 21, 2009 at 11:04:54AM +0200, Adriaan de Groot wrote: > On Tuesday 21 July 2009 02:34:58 am Shawn Walker wrote: > > No, you specified -library=no%Cstd so, I believe the behaviour is expected. > > Exactly. When using -library=no%Cstd you get none of the usual runtime.
This is not true. -library=no%Cstd does not mean -library=no%Crun. Confusion might happen because we are talking about shared library compilation (-G). In this mode both Cstd and Crun are *off* by default. And when you build generic a.out both Cstd and Crun are on by default. You can use -library=no%Cstd to switch off Cstd in this case. However using it in -G mode is just noop. > > > Since you're building Qt, you really want to link against the Apache C++ > > library (stdcxx). > > -lstdcxx -lCrun, because stdcxx doesn't include the C++ runtime -- just the Please, use -library=Crun instead of -lCrun, it helps you to avoid spurious link failures that can happen due to -lCrun being linked improperly. Also, you should avoid explicitly -L/-R'ing /usr/lib* and compiler-specific paths, like /opt/SUNWspro/lib whatever... unless you definitely know what you are doing (and in this case you probably want to use -norunpath option). regards, Fedor. > stl. How this will interact with the C++ update will have to be sorted out > after b.120 and the next compiler release -- at which time we should bump our > required compiler to one that fully supports stdcxx. > > Right now it looks like supported compilers are: > - studio express on OSOL > - studio 12 U1 on OSOL + Nevada > - studio 12 on Nevada > > [ade] > _______________________________________________ > kde-discuss mailing list > kde-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/kde-discuss
