I just did a fresh install of Fedora Core 4 and after installing
drivers and using yum to update my packages, I went to make OpenSG from
source. I am getting an error with hash_map. The exact text is as
follows. I hadn't looked for warnings on previous compiles, but since I
got an error with this build I looked through the output and found one
warning as well which is also listed.
/home/me/OpenSG-1.4.0-src/OpenSG/Source/System/FieldContainer/Impl/OSGFieldContainerFactoryImpl.h:70:
warning: 'struct osg::FieldContainerMapper' has virtual functions but
non-virtual destructor
/home/me/OpenSG-1.4.0-src/OpenSG/Source/System/Window/OSGWindow.h:317:
error: ISO C++ forbids declaration of 'hash_map' with no type
/home/me/OpenSG-1.4.0-src/OpenSG/Source/System/Window/OSGWindow.h:317: error: typedef name may not be a nested-name-specifier
/home/me/OpenSG-1.4.0-src/OpenSG/Source/System/Window/OSGWindow.h:317: error: expected ';' before '<' token
/home/me/OpenSG-1.4.0-src/OpenSG/Source/System/Window/OSGWindow.h:380: error: 'ConstHash' does not name a type
I havn't gone into the source enough to know what decendents
FieldContainerMapper has and there is no worry if there is never a need
for a destructor. (At first glance it seems that this is the case.)
The issue with hash_map worries me though I do have ext/hash_map
installed on my system and as far as I can tell by how far the compiler
is getting, the header must have gotten included properly. My best bet
is the compiler difference with what the source was written for (gcc
3.2?) and the current version. I am also willing to bet that the source
has already been patched in the current branch of the OpenSG source.
Does anyone know of a work-around for this?
-- Jesse Coyle
- [Opensg-users] compiling problems on Fedora Core 4 with gcc 4... Nomad Rock
