Build errors on Solaris
|Reported by:||ripleybd||Owned by:||warmerdam|
I have been building GDAL on Solaris with the SunStudio compilers. There were several issues:
$(CC) is used to compile C++ in frmts/pcidsk/GNUmakefile
g++ is hardcoded in frmts/pcidsk/sdk/Makefile
port/cpl_port.h simply leaves CPL_INLINE empty, and this will not work (lots of multiply defined symbols). My understanding that 'inline' is standard (C99 and C++), but if you want to do something else my patch will need altering.
The SunStudio compiler wants extern "C" declared around all the components in alg/gdalmediancut.cpp or it generates a mangled symbol.
frmts/pcidsk/sdk/segment/metadatasegment_p.cpp frmts/pcidsk/sdk/pcidsk_exception.h need to declare use of namespace std