Posted: Mon Dec 08, 2003 8:23 am Post subject: Problem with libstdc++.so.3
Newbie
Joined: 23 May 2003 Posts: 3
I am running Redhat 9, MQ5.3 and am having a problem with the impwrld example.
This seems to be a similar problem to one somebody has already asked about but there was no reply.
I try and build it as follows
g++ -o imqwrld imqwrld.cpp -fsigned-char -I/opt/mqm/inc -L/opt/mqm/lib/3.0.3 -Wl,-rpath/opt/mqm/lib/3.0.3 -limqb23gl -limqs23gl
but get the error: /usr/bin/ld: bad -rpath option
collect2: ld returned 1 exit status
If I remove the -W1, rpath options, I get a warning: libstdc++.so.3, needed by /opt/mqm/lib/3.0.3/libimqb23gl.so, not found (try using -rpath or -rpath-link).
Looking in my usr/lib directory, I didn't have a libstdc++.so.3 so firstly tried to use a symbolic link with libstdc++.so.5 but that then causes a crash when it tries to delete memory in the setStorage function of the ImqQueue destructor. I found a copy of libstdc++.so.3 on the redhat 7.2 updates page but that now warns about a conflict between so.3 and so.5.
Can anyone tell me what I am doing wrong?
Thanks in advance
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum