Hi,
I have a very simple program:
#include "ace/Thread.h"
#include <rw/cstring.h>
#include <iostream>
RWCString env;
#include "rw/tpslist.h"
#include <string>
RWTPtrSlist<RWCString> s_core;
int main(int argc, char**argv) {
std::string s;
env ="rock";
cout<<"Will htis work?"<<env<<endl;
}
On linking, I get the following error:
Compiling /v/sbansal/out/temp/test/t.o
/opt/SUNWspro/bin/CC -temp=/v/sbansal/out/temp -g -instances=explicit -c -Bdynamic -ldl -mt -instances=explicit -library=rwtools7_std,Cstd -DACE_HAS_EXCEPTIONS -D__ACE_INLINE__ -DSUN_CC_HAS_PVFC_BUG -o /v/sbansal/out/temp/test/t.o -I/v/sbansal/out/include/test -I/v/sbansal/ACE_wrappers -I/opt/gate/base91/VALUES/include -I/opt/gate/base91/VALUES/include/CBOT -I/exe/tibco/tibrv5/include -I/v/sbansal/out/include/utils -I/v/sbansal/out/include/transport -I/v/sbansal/out/include/common src/t.cc
Linking /v/sbansal/out/bin/test
/opt/SUNWspro/bin/CC -temp=/v/sbansal/out/temp -g -instances=explicit -lsocket -lnsl -Bdynamic -ldl -mt -instances=explicit -library=rwtools7_std,Cstd -DACE_HAS_EXCEPTIONS -D__ACE_INLINE__ -DSUN_CC_HAS_PVFC_BUG -o /v/sbansal/out/bin/test /v/sbansal/out/temp/test/t.o /v/sbansal/ACE_wrappers/ace/libACE.so /exe/tibco/tibrv5/lib/libtibrv.a /exe/tibco/tibrv5/lib/libtibrvcpp.a /v/sbansal/out/lib/libutils.a /v/sbansal/out/lib/libcommon.a /v/sbansal/out/lib/libtransport.a /v/sbansal/ACE_wrappers/ace/libACE.so /v/sbansal/ACE_wrappers/ace/libACE.so /exe/tibco/tibrv5/lib/libtibrv.a /exe/tibco/tibrv5/lib/libtibrvcpp.a /v/sbansal/out/lib/libutils.a /v/sbansal/out/lib/libcommon.a /v/sbansal/out/lib/libtransport.a /v/sbansal/ACE_wrappers/ace/libACE.so
ild: (undefined symbol) rw_slist<RWCString*,std::allocator<RWCString*> >::rw_slist() -- referenced in the text segment of /v/sbansal/out/temp/test/t.o
ild: (undefined symbol) rw_slist<RWCString*,std::allocator<RWCString*> >::~rw_slist() -- referenced in the text segment of /v/sbansal/out/temp/test/t.o
make: *** [/v/sbansal/out/bin/test] Error 5
ron4-prd-bond2:sbansal:/v/sbansal/eurex/eurexcore/test >
I'm not sure what could be wrong. My LD_LIBRARY_PATH is set as:
>echo $LD_LIBRARY_PATH
.:/exe/vndr/sybase/lib:/exe/Components/rv/lib:/usr/exe/vndr/entrust/lib:/opt/eurex:/v/nkalich/openlink/lib:/usr/lib:/net/ny-syb2/exports/v/nkalich/openlink/lib
Do I need to set anything else?
Regards,
Sharad
I have a very simple program:
#include "ace/Thread.h"
#include <rw/cstring.h>
#include <iostream>
RWCString env;
#include "rw/tpslist.h"
#include <string>
RWTPtrSlist<RWCString> s_core;
int main(int argc, char**argv) {
std::string s;
env ="rock";
cout<<"Will htis work?"<<env<<endl;
}
On linking, I get the following error:
Compiling /v/sbansal/out/temp/test/t.o
/opt/SUNWspro/bin/CC -temp=/v/sbansal/out/temp -g -instances=explicit -c -Bdynamic -ldl -mt -instances=explicit -library=rwtools7_std,Cstd -DACE_HAS_EXCEPTIONS -D__ACE_INLINE__ -DSUN_CC_HAS_PVFC_BUG -o /v/sbansal/out/temp/test/t.o -I/v/sbansal/out/include/test -I/v/sbansal/ACE_wrappers -I/opt/gate/base91/VALUES/include -I/opt/gate/base91/VALUES/include/CBOT -I/exe/tibco/tibrv5/include -I/v/sbansal/out/include/utils -I/v/sbansal/out/include/transport -I/v/sbansal/out/include/common src/t.cc
Linking /v/sbansal/out/bin/test
/opt/SUNWspro/bin/CC -temp=/v/sbansal/out/temp -g -instances=explicit -lsocket -lnsl -Bdynamic -ldl -mt -instances=explicit -library=rwtools7_std,Cstd -DACE_HAS_EXCEPTIONS -D__ACE_INLINE__ -DSUN_CC_HAS_PVFC_BUG -o /v/sbansal/out/bin/test /v/sbansal/out/temp/test/t.o /v/sbansal/ACE_wrappers/ace/libACE.so /exe/tibco/tibrv5/lib/libtibrv.a /exe/tibco/tibrv5/lib/libtibrvcpp.a /v/sbansal/out/lib/libutils.a /v/sbansal/out/lib/libcommon.a /v/sbansal/out/lib/libtransport.a /v/sbansal/ACE_wrappers/ace/libACE.so /v/sbansal/ACE_wrappers/ace/libACE.so /exe/tibco/tibrv5/lib/libtibrv.a /exe/tibco/tibrv5/lib/libtibrvcpp.a /v/sbansal/out/lib/libutils.a /v/sbansal/out/lib/libcommon.a /v/sbansal/out/lib/libtransport.a /v/sbansal/ACE_wrappers/ace/libACE.so
ild: (undefined symbol) rw_slist<RWCString*,std::allocator<RWCString*> >::rw_slist() -- referenced in the text segment of /v/sbansal/out/temp/test/t.o
ild: (undefined symbol) rw_slist<RWCString*,std::allocator<RWCString*> >::~rw_slist() -- referenced in the text segment of /v/sbansal/out/temp/test/t.o
make: *** [/v/sbansal/out/bin/test] Error 5
ron4-prd-bond2:sbansal:/v/sbansal/eurex/eurexcore/test >
I'm not sure what could be wrong. My LD_LIBRARY_PATH is set as:
>echo $LD_LIBRARY_PATH
.:/exe/vndr/sybase/lib:/exe/Components/rv/lib:/usr/exe/vndr/entrust/lib:/opt/eurex:/v/nkalich/openlink/lib:/usr/lib:/net/ny-syb2/exports/v/nkalich/openlink/lib
Do I need to set anything else?
Regards,
Sharad