I was surprised no one asked this. I keep getting errors when I compile the original Cube Engine sourcecode in visual C++ 2008. But I get these errors.
Compiling...
cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release
pch.cpp
c:\program files\cube\cube_source\src\tools.h(64) : warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
F:\VB9\VC\include\string.h(157) : see declaration of 'strncpy'
c:\program files\cube\cube_source\src\tools.h(70) : warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
F:\VB9\VC\include\stdio.h(358) : see declaration of '_vsnprintf'
c:\program files\cube\cube_source\src\tools.h(82) : warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
F:\VB9\VC\include\stdio.h(358) : see declaration of '_vsnprintf'
c:\program files\cube\cube_source\src\cube.h(275) : fatal error C1083: Cannot open include file: 'GL/glext.h': No such file or directory
I will put a link to the log file too. Help would be great.
the reason probably for this is that VC2008 converted the files improperly and i need something like mingw but with a gui
_____________________________________________________________________________________________________
it has been almost a year and i still am thinking about it.
VC++ 2005 gives this
1>------ Build started: Project: sauerbraten, Configuration: Release Win32 ------
1>Compiling...
1>pch.cpp
1>d:\prj\sauerbraten\src\tools.h(81) : warning C4996: 'strncpy' was declared deprecated
1> D:\Program Files\Microsoft Visual Studio 8\VC\include\string.h(156) : see declaration of 'strncpy'
1> Message: 'This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
1>d:\prj\sauerbraten\src\tools.h(93) : warning C4996: '_vsnprintf' was declared deprecated
1> D:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(339) : see declaration of '_vsnprintf'
1> Message: 'This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
1>d:\prj\sauerbraten\src\cube.h(468) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>Build log was saved at "file://d:\prj\sauerbraten\vcpp\Release\BuildLog.htm"
1>sauerbraten - 1 error(s), 2 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
also i switched to using an early sauerbraten engine instead of cube.
vc 2003 gives that it cannot find glext.h
d:\prj\sauerbraten\src\cube.h(475): fatal error C1083: Cannot open include file: 'GL/glext.h': No such file or directory
i add it to the header files and it still cant find it, Any help?
Attachment | Size |
---|---|
BuildLog.htm_.txt | 12.54 KB |
BuildLog.htm_.txt (2005) | 10.59 KB |
solution 1.jpg | 57.31 KB |
solution 2.jpg | 52.82 KB |