[Mapserver-users] MDK9 (gcc3): undefined reference to `__gxx_personality_v0'
Norman
Norman
Thu Jan 2 12:52:19 PST 2003
richard hornsby writes:
>
> ref gcc version 3.2 (Mandrake Linux 9.0 3.2-1mdk)
> ref mapserver 3.6.3
>
> Checking the mailing list archives and realizing that this seems to be a
> common problem with GCC 3 not understanding what 'personality_v0' is or
> whatever, and seeing all the stuff about changing the makefile to point to
> g++ in the problem areas, what I can't figure out is:
>
> - what lines (by number if possible) in the Makefile need to be changed,
> so that those who are trying aren't changing the wrong lines?
>
> - does it actually do anything to change lines in the Makefile to point
> to g++ in linux? ie, I get the same version response whether I ask 'gcc
> -v' or 'g++ -v'?
this keeps coming up so I hope the following can be used as
the basis for a FAQ entry or even better for changes to be
made in the mapserver Makefile
< please clean up as necessary >
g++ and c++ are just driver programs that call the actual compiler
g++ automatically links with -lstdc++ whereas gcc does not
so since the some of the libraries mapserver link with are C++
libraries you need to link with libstdc++ to link successfuly
You can accomplish this by either
1) changing the Makefile so that g++ is called for the linking stage
of the mapserver executables
2) adding -lstdc++ to the list of libraries thesse executables are
linked against
> - is it possible to install and use gcc 2.9.x concurrently with gcc 3.x,
> and therefore compile mapserver with the gcc 2.9.x, all *without*
> breaking the existing installation of gcc 3.x? if so, could someone point
> out where the documentation on howto do this is?
http://gcc.gnu.org/fom_serv/cache/14.html
HTH
Norman
More information about the MapServer-users
mailing list