hpesoj
08-12-2007 16:14:35
Having managed to finally get the OgreNewt library to compile in Code::Blocks with my extreme lack of knowledge of how a C++ compiler works, I have one small problem left when compiling to a DLL (both debug and release).
The problem is with this line (line 27) in OgreNewt_CollisionPrimitives.h:
Log:
I can fix this problem and compile fine if I remove the '_OgreNewtExport' bit, but if I am not mistaken, this will cause FaceWinding to not be exported to the DLL. Does anyone have any idea what is going wrong and if there is a better way to fix it than the one above?
Cheers,
Joe
The problem is with this line (line 27) in OgreNewt_CollisionPrimitives.h:
//! face-winding enum.
enum _OgreNewtExport FaceWinding { FW_DEFAULT, FW_REVERSE };
Log:
warning: type attributes are honored only at type definition
error: use of enum 'FaceWinding' without previous declaration
I can fix this problem and compile fine if I remove the '_OgreNewtExport' bit, but if I am not mistaken, this will cause FaceWinding to not be exported to the DLL. Does anyone have any idea what is going wrong and if there is a better way to fix it than the one above?
Cheers,
Joe