Skip to main content
GameDev.net gamedev.net
🔒 Locked

lesson 6 nehe tutorial compiler error

Started by popendot Dec 28, 2006 at 2:31 AM 0 replies 600+ views
Original Post
popendot
popendot
hi.. i'm currently doing nehe's tutorial # 6 and am getting 11 compiler errors when i try to compile lesson6.cpp code retrieved from the site itself following are the errors: 1>------ Build started: Project: Lesson01, Configuration: Debug Win32 ------ 1>Compiling... 1>lesson01.cpp 1>.\lesson01.cpp(28) : error C2143: syntax error : missing ';' before '*' 1>.\lesson01.cpp(28) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>.\lesson01.cpp(28) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>.\lesson01.cpp(34) : error C2440: 'return' : cannot convert from 'AUX_RGBImageRec *' to 'int' 1> There is no context in which this conversion is possible 1>.\lesson01.cpp(42) : error C2065: 'TextureImage' : undeclared identifier 1>.\lesson01.cpp(48) : error C2664: 'glBindTexture' : cannot convert parameter 2 from 'GLuint *' to 'GLuint' 1> There is no context in which this conversion is possible 1>.\lesson01.cpp(50) : error C2227: left of '->sizeX' must point to class/struct/union/generic type 1>.\lesson01.cpp(50) : error C2227: left of '->sizeY' must point to class/struct/union/generic type 1>.\lesson01.cpp(51) : error C2227: left of '->data' must point to class/struct/union/generic type 1>.\lesson01.cpp(59) : error C2227: left of '->data' must point to class/struct/union/generic type 1>.\lesson01.cpp(60) : error C2227: left of '->data' must point to class/struct/union/generic type 1>Build log was saved at "file://c:\Documents and Settings\Dhruv\My Documents\Visual Studio 2005\Projects\Lesson01\Lesson01\Debug\BuildLog.htm" 1>Lesson01 - 11 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== a little help? i havent had any luck so far..
Kalidor
Kalidor
Lesson 6 builds perfectly for me in VS 2005 (it looks like that's what you're using too). The line numbers in the unchanged source directly from the site don't seem to match up with the errors you have, did you change anything? If you did we will need to know what you changed to help you out.

From your build log it looks like you are building lesson 1 anyway (which also builds perfectly for me).

EDIT: Nevermind, it looks like you're past the compiling part now.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.