Re: Relocation error with STL Map in a shared object

2006-06-21 Thread Suneeel
Hi again, Silly mistake, I was also using another shared object that was using an earlier version of the stdc++ library. Recompiled bothShared Object with the same version and the problem was solved. ___ help-gplusplus mailing list help-gplusplus@gnu.o

Re: using 'g++ -shared' causes Segmentation fault

2006-06-21 Thread Mateusz Krzeszowiec
*blush* thanks! Paul Pluzhnikov wrote: > "facedancer" <[EMAIL PROTECTED]> writes: > > > I'm trying to learn c++ for Linux and I've got a big problem. > > Actually, you don't have a problem ... > > > When I > > try to link shared libraries to my program it always outputs > > 'Segmentation fault' w

Re: using 'g++ -shared' causes Segmentation fault

2006-06-21 Thread Mateusz Krzeszowiec
Paul Pluzhnikov wrote: > "facedancer" <[EMAIL PROTECTED]> writes: > > > I'm trying to learn c++ for Linux and I've got a big problem. > > Actually, you don't have a problem ... Actually, I have a problem :) I *need* to use shared libs (SDL & openGl libs) and I guess it's -shared switch which set

Re: using 'g++ -shared' causes Segmentation fault

2006-06-21 Thread Vipin Dravid
I *need* to use shared libs (SDL & openGl libs) and I guess it's -shared switch which set that 'linking option'. Every time I use it (-shared) ANY program I'm trying to run gives 'Segmentation fault'... you may need to use shared libs, but surely not _execute_ them. you will get undefined beha

Re:using 'g++ -shared' causes Segmentation fault

2006-06-21 Thread Vipin Dravid
I *need* to use shared libs (SDL & openGl libs) and I guess it's -shared switch which set that 'linking option'. Every time I use it (-shared) ANY program I'm trying to run gives 'Segmentation fault'... you may need to use shared libs, but surely not _execute_ them. you will get undefined beha

Re: using 'g++ -shared' causes Segmentation fault <1150850023.079497.18...@u72g2000cwu.googlegroups.com>

2006-06-21 Thread Robert Heller
At 21 Jun 2006 06:50:49 -0700 "Mateusz Krzeszowiec" <[EMAIL PROTECTED]> wrote: > > > Paul Pluzhnikov wrote: > > "facedancer" <[EMAIL PROTECTED]> writes: > > > > > I'm trying to learn c++ for Linux and I've got a big problem. > > > > Actually, you don't have a problem ... > > Actually, I have a

How to make which version of stdc++ is being used?

2006-06-21 Thread Suneeel
Hi all, I'm having a lot of trouble because different components that I am using are getting compiled with different versions of the stdc++ library. I want to have one single directory with all my shared libraries as well as the standard c and c++ libraries and link my executeable only with the li

Re: How to make which version of stdc++ is being used?

2006-06-21 Thread Suneeel
I'm using GCC 4.1.0 on RedHat Linux 9 ___ help-gplusplus mailing list help-gplusplus@gnu.org http://lists.gnu.org/mailman/listinfo/help-gplusplus