[Gdal-dev] need RTTI for OGR (Windows)

Frank Warmerdam warmerdam at pobox.com
Fri Apr 7 09:15:44 EDT 2006


EllenD wrote:
> Unhandled exception @ .... : Microsoft C++ exception: __non_rtti_object @
> ....
> 
> I am using GDAL 1.3.1 and tried to compile it with the /GR option added to
> the OPTFLAGS compiler flags in nmake.opt. The compilation and installation
> are successfull, but I still get the error. 
> 
> How can I compile GDAL so that OGR (and GDAL) has RTTI support or is
> something else wrong?

Ellen,

I often build with /GR and /GX though I'm not exactly clear why.

Also, are you building your own application code with /GX?

I have used RTTI dynamic casts inside GDAL but it is possible your problems
relates to using it across the DLL boundaries.  I'm not sure if that is
related or not.

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    | President OSGF, http://osgeo.org




More information about the Gdal-dev mailing list