Advertisement

HELP!!

Started by August 11, 2006 10:35 AM
6 comments, last by C00kie Monster 18 years, 3 months ago
i just found the NeHe SDK and tried it out however, it wouldn't complie, this is what i get ------ Rebuild All started: Project: NeheGL, Configuration: Debug Win32 ------ Deleting intermediate and output files for project 'NeheGL', configuration 'Debug|Win32' Compiling... win32.cpp view.cpp timer.cpp TGALoader.cpp c:\documents and settings\daniel\desktop\nehe_sdk\src\tgaloader.cpp(66) : warning C4996: 'fopen' was declared deprecated c:\program files\microsoft visual studio 8\vc\include\stdio.h(234) : see declaration of 'fopen' Message: 'This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' texture.cpp c:\documents and settings\daniel\desktop\nehe_sdk\src\texture.cpp(136) : warning C4996: '_itoa' was declared deprecated c:\program files\microsoft visual studio 8\vc\include\stdlib.h(491) : see declaration of '_itoa' Message: 'This function or variable may be unsafe. Consider using _itoa_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' text.cpp c:\documents and settings\daniel\desktop\nehe_sdk\src\text.h(61) : warning C4996: '_itoa' was declared deprecated c:\program files\microsoft visual studio 8\vc\include\stdlib.h(491) : see declaration of '_itoa' Message: 'This function or variable may be unsafe. Consider using _itoa_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' c:\documents and settings\daniel\desktop\nehe_sdk\src\text.h(63) : warning C4996: '_itoa' was declared deprecated c:\program files\microsoft visual studio 8\vc\include\stdlib.h(491) : see declaration of '_itoa' Message: 'This function or variable may be unsafe. Consider using _itoa_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' c:\documents and settings\daniel\desktop\nehe_sdk\src\text.h(65) : warning C4996: 'sprintf' was declared deprecated c:\program files\microsoft visual studio 8\vc\include\stdio.h(345) : see declaration of 'sprintf' Message: 'This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' c:\documents and settings\daniel\desktop\nehe_sdk\src\text.h(67) : warning C4996: 'sprintf' was declared deprecated c:\program files\microsoft visual studio 8\vc\include\stdio.h(345) : see declaration of 'sprintf' Message: 'This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' state.cpp splash.cpp c:\documents and settings\daniel\desktop\nehe_sdk\src\splash.cpp(161) : warning C4996: 'fopen' was declared deprecated c:\program files\microsoft visual studio 8\vc\include\stdio.h(234) : see declaration of 'fopen' Message: 'This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' c:\documents and settings\daniel\desktop\nehe_sdk\src\splash.cpp(168) : warning C4996: 'fscanf' was declared deprecated c:\program files\microsoft visual studio 8\vc\include\stdio.h(249) : see declaration of 'fscanf' Message: 'This function or variable may be unsafe. Consider using fscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' c:\documents and settings\daniel\desktop\nehe_sdk\src\splash.cpp(173) : warning C4996: 'fscanf' was declared deprecated c:\program files\microsoft visual studio 8\vc\include\stdio.h(249) : see declaration of 'fscanf' Message: 'This function or variable may be unsafe. Consider using fscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' shape.cpp scissorbox.cpp program.cpp pcxloader.cpp c:\documents and settings\daniel\desktop\nehe_sdk\src\pcxloader.cpp(69) : warning C4996: 'fopen' was declared deprecated c:\program files\microsoft visual studio 8\vc\include\stdio.h(234) : see declaration of 'fopen' Message: 'This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' particle.cpp opengl.cpp c:\documents and settings\daniel\desktop\nehe_sdk\src\opengl.cpp(111) : warning C4996: '_itoa' was declared deprecated c:\program files\microsoft visual studio 8\vc\include\stdlib.h(491) : see declaration of '_itoa' Message: 'This function or variable may be unsafe. Consider using _itoa_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' nexception.cpp modelframe.cpp model.cpp milkshape.cpp c:\documents and settings\daniel\desktop\nehe_sdk\src\milkshape.cpp(188) : warning C4996: 'fopen' was declared deprecated c:\program files\microsoft visual studio 8\vc\include\stdio.h(234) : see declaration of 'fopen' Message: 'This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' c:\documents and settings\daniel\desktop\nehe_sdk\src\milkshape.cpp(312) : 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.' mesh.cpp md2.cpp c:\documents and settings\daniel\desktop\nehe_sdk\src\md2.cpp(131) : warning C4996: 'fopen' was declared deprecated c:\program files\microsoft visual studio 8\vc\include\stdio.h(234) : see declaration of 'fopen' Message: 'This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' Generating Code... Compiling... material.cpp image.cpp c:\documents and settings\daniel\desktop\nehe_sdk\src\image.cpp(94) : warning C4996: 'strcat' was declared deprecated c:\program files\microsoft visual studio 8\vc\include\string.h(78) : see declaration of 'strcat' Message: 'This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' c:\documents and settings\daniel\desktop\nehe_sdk\src\image.cpp(95) : warning C4996: 'strcat' was declared deprecated c:\program files\microsoft visual studio 8\vc\include\string.h(78) : see declaration of 'strcat' Message: 'This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' heightmap.cpp c1xx : fatal error C1083: Cannot open source file: '..\..\..\src\heightmap.cpp': No such file or directory fog.cpp envmap.cpp displaylist.cpp button.cpp c:\documents and settings\daniel\desktop\nehe_sdk\src\button.cpp(52) : warning C4996: 'fscanf' was declared deprecated c:\program files\microsoft visual studio 8\vc\include\stdio.h(249) : see declaration of 'fscanf' Message: 'This function or variable may be unsafe. Consider using fscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' billboard.cpp avi.cpp advtexture.cpp Generating Code... Build log was saved at "file://c:\Documents and Settings\Daniel\Desktop\nehe_sdk\msvc\nehe_sdk\NeheGL\Debug\BuildLog.htm" NeheGL - 1 error(s), 17 warning(s) ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ========== i have NO idea whats wrong help!!
You are trying to compile a file called '..\..\..\src\heightmap.cpp' but it doesn't exist. The rest are just warnings about deprecated functions. You should deal with that, but they won't prevent you from compiling.
Advertisement
If you look carefully, you actually have only one error, the other are only warnings. They may be annoying but they won't make your compilation fail. The only error you get is :

c1xx : fatal error C1083: Cannot open source file: '..\..\..\src\heightmap.cpp': No such file or directory

You shoudl double-check the file path. Also, Usually you should never include .cpp files in another file but alway include the header (.h) files.

As for your post, you should :
1- Choose a more descriptive title and not use caps lock and exclamation marks like you did. You could have named it "Compilation errors on NeHe sdk".
2- use the [ source ] tags when citing large amount of code / compilation errors.
Quote: Original post by Trillian
As for your post, you should :
1- Choose a more descriptive title and not use caps lock and exclamation marks like you did. You could have named it "Compilation errors on NeHe sdk".
2- use the [ source ] tags when citing large amount of code / compilation errors.


thanks for the tips, i'll keep that in mind next time
Quote: Original post by Trillian
As for your post, you should :
1- Choose a more descriptive title and not use caps lock and exclamation marks like you did. You could have named it "Compilation errors on NeHe sdk".
2- use the [ source ] tags when citing large amount of code / compilation errors.



my bad, i'll keep those tips in mind next time.

as for the heightmap.cpp, is that file suppose to be in the NeHe SDK?
Well, seems as if you found a bug in the NeHe SDK...
You're right, heightmap.cpp should be included, the VC Project requires it, but it's not present.
I just sent a PM to the author of the SDK..
Advertisement
Hi - I'm the author of the SDK. Some distributions of it still contain a link to the non-supplied heightmap.cpp. Sorry about that. The easiest thing to do is to go the "heightmap.cpp" link in Visual Studio, and remove it - I think it's in the right-click menu of the file browser.

The rest of the warnings are just VS 2005 not liking older code. You can safely ignore them. If you need any more help, please PM me.

btw - did you download it from the nehe page recently? I thought that version was fixed [sad]
yea, i got it from the NeHe site (http://nehe.gamedev.net/stats.asp)

it was the top 10 downloads page

This topic is closed to new replies.

Advertisement