Make problem mapserver 4.2.5
Frank Warmerdam
fwarmerdam at GMAIL.COM
Thu Dec 30 07:35:01 PST 2004
On Thu, 30 Dec 2004 16:30:13 +0100, Wim Blanken <w.blanken at geon.nl> wrote:
>
> Hello List,
>
> Maybe a stupid question but do i really need g++ to compile mapserver?
> If not how can i fix the following make error on a system with only the gcc
> compiler installed
> I used no options during ./configure.
Wim,
The mapogr.cpp module really is C++ and requires a c++
compiler. However, you can invoke gcc on it, and if it is
C++ enabled it will compile the module properly. The problem
may arise later at link time. Linking using gcc instead of g++
(or c++ as it is sometimes available) will result in the executable
not linking in C++ support libraries that are likely required by
mapogr.cpp. To make this work you may need to find the name
of the C++ support libraries and explicitly include them in the link.
They are usually something like libstdc++.so so having -lstdc++ in
the link line may be sufficient.
To later these settings just edit the Makefile and alter all
occurances of g++ to gcc and add -lstdc++ in the EXE_LDFLAGS
variable.
Note that it is rather unusual in my experience to have gcc
installed without g++. This may indicate that your GCC was
built without C++ support in which case you will not be able to
include the OGR support in MapServer.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the MapServer-users
mailing list