Page 1 of 1

irrlicht svn version build problems

Posted: Sun Jul 30, 2006 9:18 am
by Cezaro
Hello!

I cannot build irrlicht current svn version using visual c++ 2005 express
edition and latest dev c++ , my question is what compiler using to compile latest svn version????

thanks

Posted: Sun Jul 30, 2006 10:03 am
by hybrid
I'm always compiling my SVN version with Dev-c++ 4.9.9.2 (and of course under Linux, using gcc 3.X/4.x and icc). So it should work, though sometimes there's a small time in between where it does not compile. E.g. when I've developed some code under Linux and did not check it under Windows, yet. But these things will usually get fixed within 24 hours. So what's the error you get and did you succeed with an Irrlicht compile before?

Posted: Sun Jul 30, 2006 10:24 am
by Cezaro
CPakReader.cpp
CMemoryReadFile.cpp
CFileSystem.cpp
d:\irrlicht-1.0\engine source\irrlicht 1.1\CFileSystem.h(79) : error C2143: syntax error : missing ';' before '*'
d:\irrlicht-1.0\engine source\irrlicht 1.1\CFileSystem.h(79) : error C2433: 'irr::io::CFileSystem::IAttributes' : 'virtual' not permitted on data declarations
d:\irrlicht-1.0\engine source\irrlicht 1.1\CFileSystem.h(79) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
d:\irrlicht-1.0\engine source\irrlicht 1.1\CFileSystem.h(79) : error C2653: 'video' : is not a class or namespace name
d:\irrlicht-1.0\engine source\irrlicht 1.1\CFileSystem.h(79) : error C2061: syntax error : identifier 'IVideoDriver'
d:\irrlicht-1.0\engine source\irrlicht 1.1\CFileSystem.h(79) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
d:\irrlicht-1.0\engine source\irrlicht 1.1\CFileSystem.h(79) : warning C4183: 'createEmptyAttributes': missing return type; assumed to be a member function returning 'int'
.\CFileSystem.cpp(272) : error C2511: 'irr::io::IAttributes *irr::io::CFileSystem::createEmptyAttributes(irr::video::IVideoDriver *)' : overloaded member function not found in 'irr::io::CFileSystem'
d:\irrlicht-1.0\engine source\irrlicht 1.1\CFileSystem.h(23) : see declaration of 'irr::io::CFileSystem'
CAttributes.cpp
d:\irrlicht-1.0\engine source\irrlicht 1.1\CAttributeImpl.h(48) : warning C4996: 'strcpy' was declared deprecated
C:\Program Files\Microsoft Visual Studio 8\VC\include\string.h(73) : see declaration of 'strcpy'
Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
d:\irrlicht-1.0\engine source\irrlicht 1.1\CAttributeImpl.h(133) : warning C4996: 'strcpy' was declared deprecated
C:\Program Files\Microsoft Visual Studio 8\VC\include\string.h(73) : see declaration of 'strcpy'
Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
d:\irrlicht-1.0\engine source\irrlicht 1.1\CAttributeImpl.h(203) : warning C4996: 'sprintf' was declared deprecated


when i compile stable version there no errors, but under the stable i compile visual c++ 2005 solution file(8.0) , in svn include only version 7.1
of the solution file but visual studio 2005 express convert it to 8.0
ofcourse i compile svn version using svn header files

Posted: Sun Jul 30, 2006 10:55 am
by hybrid
Hmm, never saw this error. But you could try to include IAttributes.h in CFileSystem.h and see if it recognizes the IAttributes type. Or add the io:: namespace to it.

Posted: Mon Jul 31, 2006 5:22 pm
by Cezaro
Solved!!!

today(31.07.2006) i copy svn version and my vs 2005 express convert project .dsw file(no .sln) , and build succesfull , so naw i can use blitz3d format is little bit faster than my3d...