Jekteir
19-07-2007 00:57:24
Hi CaseyB,
Many thanks for all your help with licensing/compilation issues so far. Annoyingly we had to move from Code::Blocks to VC++ 2005 due to various problems with all the tools, and are now getting to experience VC++'s unique pecadillos with the repository we had just about got working with C::B and MinGW GCC! In particular right now there are a couple of errors with OgreAL's SoundManager during compilation using VC++ 2005:
The line the above error actually points to is:
But, having read up a little on the error at http://msdn2.microsoft.com/en-us/library/62688esh(vs.71).aspx , I expect the problem is either in the class definition at:
or the define it references, which is actually at:
Note: my --> arrow refers to the line Visual Studio actually runs. I'm not trying to make a DLL, just use the source from within my project.
I thought about moving the OgreAL_Export out of the class definition and maybe onto the constructor, but I really had no idea what that would do (or why), so I left it alone...
In case it's relevant or useful, I include a few other errors/warnings from the compile (not the whole list by any stretch):
[ edit ] -- cut out lots of unnecessary errors -- these are enough to express the issue [ /edit]
Could you help me out please?
Many thanks,
Jek
Many thanks for all your help with licensing/compilation issues so far. Annoyingly we had to move from Code::Blocks to VC++ 2005 due to various problems with all the tools, and are now getting to experience VC++'s unique pecadillos with the repository we had just about got working with C::B and MinGW GCC! In particular right now there are a couple of errors with OgreAL's SoundManager during compilation using VC++ 2005:
>..\OgreAL\OgreALsrc\OgreALSoundManager.cpp(38) : error C2491: 'Ogre::Singleton<T>::ms_Singleton' : definition of dllimport static data member not allowed
> with
> [
> T=OgreAL::SoundManager
> ]
The line the above error actually points to is:
template<> OgreAL::SoundManager* Ogre::Singleton<OgreAL::SoundManager>::ms_Singleton = 0;
But, having read up a little on the error at http://msdn2.microsoft.com/en-us/library/62688esh(vs.71).aspx , I expect the problem is either in the class definition at:
class OgreAL_Export SoundManager : public Ogre::Singleton<SoundManager>, Ogre::FrameListener
or the define it references, which is actually at:
# ifdef OGRE_AL_EXPORT
# define OgreAL_Export __declspec(dllexport)
# else
--> # define OgreAL_Export __declspec(dllimport)
# endif
Note: my --> arrow refers to the line Visual Studio actually runs. I'm not trying to make a DLL, just use the source from within my project.
I thought about moving the OgreAL_Export out of the class definition and maybe onto the constructor, but I really had no idea what that would do (or why), so I left it alone...
In case it's relevant or useful, I include a few other errors/warnings from the compile (not the whole list by any stretch):
1>..\OgreAL\OgreALsrc\OgreALSoundManager.cpp(41) : warning C4273: 'FILE_TYPE' : inconsistent dll linkage
1> E:\Game\repos\client\trunk\OgreAL\OgreALinclude\OgreALSoundManager.h(186) : see previous definition of 'public: static std::basic_string<char,std::char_traits<char>,std::allocator<char> > const OgreAL::SoundManager::FILE_TYPE'
1>..\OgreAL\OgreALsrc\OgreALSoundManager.cpp(41) : error C2491: 'OgreAL::SoundManager::FILE_TYPE' : definition of dllimport static data member not allowed
1>..\OgreAL\OgreALsrc\OgreALSoundManager.cpp(42) : warning C4273: 'OGG' : inconsistent dll linkage
[ edit ] -- cut out lots of unnecessary errors -- these are enough to express the issue [ /edit]
Could you help me out please?
Many thanks,
Jek