compile error with mingw32

classic Classic list List threaded Threaded
3 messages Options
legeo legeo
Reply | Threaded
Open this post in threaded view
|

compile error with mingw32

Hi All, I tried to build osgeath with mingw32, and get errors:
src/osgEarth/HeightFieldUtils:42: error: 'ElevationInterpolation' has not been declared
src/osgEarth/HeightFieldUtils:42: error:ISO C++ forbids declaration of 'interpoltion' with no type
src/osgEarth/HeightFieldUtils:42: error: 'BILINEAR' was not declared in this scope
can anyone figure it out. thanx:)
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: compile error with mingw32

legeo,

I don't have mingw to debug this; perhaps you could fix the code on your end and submit a patch? Thanks.

Glenn
Glenn Waldron / Pelican Mapping
5past10 5past10
Reply | Threaded
Open this post in threaded view
|

Re: compile error with mingw32

In reply to this post by legeo
The problem is that the gcc 3.x from mingw do not allow __declspec(dllexport) or __declspec(dllimport) for enums.
gcc 4.4 shows a warning.
when you remove
remove OSGEARTH_EXPORT in line 32 from file HeightFieldUtils it should work.

chris