Alberto Rubinato
30-08-2006 15:13:49
Hi,
I'm tryng to compile OgreOde with Code::Blocks. I'm using nightly build.
I've no problem to compile my own Ogre application, but with OgreOde, i've got some trouble.
1) I've imported VC8 solution.
2) I've compiled Ode project without any problem.
3) During compilation of OgreOde project I've this error
-------------- Build: Debug|Win32 in OgreOde_Core ---------------
Compiling: ..\..\src\OgreOdeBody.cpp
In file included from ../../include/OgrePrerequisites.h:82,
from ../../include/Ogre.h:28,
from ../../include/OgreOdePreReqs.h:4,
from ../../include/OgreOdeWorld.h:4,
from ..\..\src\OgreOdeBody.cpp:1:
../../include/OgreMemoryManager.h:98: error: declaration of `void* operator new(size_t)' throws different exceptions
C:/CodeBlocks/include/c++/3.4.5/../3.4.5/new:82: error: than previous declaration `void* operator new(size_t) throw (std::bad_alloc)'
../../include/OgreMemoryManager.h:99: error: declaration of `void* operator new [](size_t)' throws different exceptions
C:/CodeBlocks/include/c++/3.4.5/../3.4.5/new:83: error: than previous declaration `void* operator new [](size_t) throw (std::bad_alloc)'
../../include/OgreMemoryManager.h:100: error: declaration of `void operator delete(void*)' throws different exceptions
C:/CodeBlocks/include/c++/3.4.5/../3.4.5/new:84: error: than previous declaration `void operator delete(void*) throw ()'
../../include/OgreMemoryManager.h:101: error: declaration of `void operator delete [](void*)' throws different exceptions
C:/CodeBlocks/include/c++/3.4.5/../3.4.5/new:85: error: than previous declaration `void operator delete [](void*) throw ()'
Process terminated with status 1 (0 minutes, 7 seconds)
8 errors, 0 warnings
I've searched in the main forum for similar error, but nothing.
Theese are the project parameter i'm using
OgreOde_Core
Linker -> Other linker options:
-Wl,--enable-runtime-pseudo-reloc
-Wl,--enable-auto-image-base
-Wl,--add-stdcall-alias
Compiler -> other options ( taken from wiki )
-mthreads
-fmessage-length=0
-fexceptions
-fident
Debug|Win32 profile
Compiler -> #defines
_DEBUG
_STLP_DEBUG
OGREODE_EXPORTS
WIN32
_WINDOWS
_USRDLL
I'm linking with
ode
libode.a
Ogremain_d
stlportstlg.5.0
Stport include directory entry in before base c++ include directory entry as indicated in ogre wiki for Code::Blocks application build.
Thanks in advance for any suggestion.
Alberto Rubinato
I'm tryng to compile OgreOde with Code::Blocks. I'm using nightly build.
I've no problem to compile my own Ogre application, but with OgreOde, i've got some trouble.
1) I've imported VC8 solution.
2) I've compiled Ode project without any problem.
3) During compilation of OgreOde project I've this error
-------------- Build: Debug|Win32 in OgreOde_Core ---------------
Compiling: ..\..\src\OgreOdeBody.cpp
In file included from ../../include/OgrePrerequisites.h:82,
from ../../include/Ogre.h:28,
from ../../include/OgreOdePreReqs.h:4,
from ../../include/OgreOdeWorld.h:4,
from ..\..\src\OgreOdeBody.cpp:1:
../../include/OgreMemoryManager.h:98: error: declaration of `void* operator new(size_t)' throws different exceptions
C:/CodeBlocks/include/c++/3.4.5/../3.4.5/new:82: error: than previous declaration `void* operator new(size_t) throw (std::bad_alloc)'
../../include/OgreMemoryManager.h:99: error: declaration of `void* operator new [](size_t)' throws different exceptions
C:/CodeBlocks/include/c++/3.4.5/../3.4.5/new:83: error: than previous declaration `void* operator new [](size_t) throw (std::bad_alloc)'
../../include/OgreMemoryManager.h:100: error: declaration of `void operator delete(void*)' throws different exceptions
C:/CodeBlocks/include/c++/3.4.5/../3.4.5/new:84: error: than previous declaration `void operator delete(void*) throw ()'
../../include/OgreMemoryManager.h:101: error: declaration of `void operator delete [](void*)' throws different exceptions
C:/CodeBlocks/include/c++/3.4.5/../3.4.5/new:85: error: than previous declaration `void operator delete [](void*) throw ()'
Process terminated with status 1 (0 minutes, 7 seconds)
8 errors, 0 warnings
I've searched in the main forum for similar error, but nothing.
Theese are the project parameter i'm using
OgreOde_Core
Linker -> Other linker options:
-Wl,--enable-runtime-pseudo-reloc
-Wl,--enable-auto-image-base
-Wl,--add-stdcall-alias
Compiler -> other options ( taken from wiki )
-mthreads
-fmessage-length=0
-fexceptions
-fident
Debug|Win32 profile
Compiler -> #defines
_DEBUG
_STLP_DEBUG
OGREODE_EXPORTS
WIN32
_WINDOWS
_USRDLL
I'm linking with
ode
libode.a
Ogremain_d
stlportstlg.5.0
Stport include directory entry in before base c++ include directory entry as indicated in ogre wiki for Code::Blocks application build.
Thanks in advance for any suggestion.
Alberto Rubinato