Help Me!!

Started by
6 comments, last by Highwinded 22 years, 1 month ago
Ok... I posted a few months back but I never got very successful, I''m a student, trying to learn C++/OpenGL. The Tutorials are dead helpful, and I''m trying to make a Hippe Pong Program for myself with Lesson 10''s Tutorial... I could get it to work at a old workplace but not on my new XP... I just wanna run the errors by you and see if anyone could help me... I use Mircosoft Visual C++ 6.0 Standard. I think I''m missing some libraries... this is my errors: --------------------Configuration: lesson10 - Win32 Debug-------------------- Linking... lesson10.obj : error LNK2001: unresolved external symbol _auxDIBImageLoadA@4 lesson10.obj : error LNK2001: unresolved external symbol _gluBuild2DMipmaps@28 lesson10.obj : error LNK2001: unresolved external symbol __imp__glTexImage2D@36 lesson10.obj : error LNK2001: unresolved external symbol __imp__glTexParameteri@12 lesson10.obj : error LNK2001: unresolved external symbol __imp__glBindTexture@8 lesson10.obj : error LNK2001: unresolved external symbol __imp__glGenTextures@8 lesson10.obj : error LNK2001: unresolved external symbol _gluPerspective@32 lesson10.obj : error LNK2001: unresolved external symbol __imp__glLoadIdentity@0 lesson10.obj : error LNK2001: unresolved external symbol __imp__glMatrixMode@4 lesson10.obj : error LNK2001: unresolved external symbol __imp__glViewport@16 lesson10.obj : error LNK2001: unresolved external symbol __imp__glHint@8 lesson10.obj : error LNK2001: unresolved external symbol __imp__glShadeModel@4 lesson10.obj : error LNK2001: unresolved external symbol __imp__glDepthFunc@4 lesson10.obj : error LNK2001: unresolved external symbol __imp__glClearDepth@8 lesson10.obj : error LNK2001: unresolved external symbol __imp__glClearColor@16 lesson10.obj : error LNK2001: unresolved external symbol __imp__glBlendFunc@8 lesson10.obj : error LNK2001: unresolved external symbol __imp__glEnable@4 lesson10.obj : error LNK2001: unresolved external symbol __imp__glEnd@0 lesson10.obj : error LNK2001: unresolved external symbol __imp__glVertex3f@12 lesson10.obj : error LNK2001: unresolved external symbol __imp__glTexCoord2f@8 lesson10.obj : error LNK2001: unresolved external symbol __imp__glNormal3f@12 lesson10.obj : error LNK2001: unresolved external symbol __imp__glBegin@4 lesson10.obj : error LNK2001: unresolved external symbol __imp__glTranslatef@12 lesson10.obj : error LNK2001: unresolved external symbol __imp__glRotatef@16 lesson10.obj : error LNK2001: unresolved external symbol __imp__glClear@4 lesson10.obj : error LNK2001: unresolved external symbol __imp__wglDeleteContext@4 lesson10.obj : error LNK2001: unresolved external symbol __imp__wglMakeCurrent@8 lesson10.obj : error LNK2001: unresolved external symbol __imp__wglCreateContext@4 lesson10.obj : error LNK2001: unresolved external symbol __imp__glDisable@4 LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Debug/lesson10.exe : fatal error LNK1120: 30 unresolved externals Error executing link.exe. lesson10.exe - 31 error(s), 0 warning(s) I have never seen an _imp_ error before... sigh...
Advertisement
quote:
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main


i pretty sure that u created a win32 console app and put in WinMain() instead of main(), to fix this u should probably start a new project and make it win32 application not console, i havent started OGL yet(still on DX) so i dont have a clue about the other errors except that u may have not included the proper libs or include the correct header files (.h), happy coding

,Matt

-= kill one your a murderer, kill thousands your a conquerer =-
-= kill one you're a murderer, kill thousands you're a conquerer =-
either fix your library path (Tools->Options->Directories->Show Directories for:->Library Files) or/and add the needed libs (glaux.lib.opengl32.lib,glu32.lib,etc) in the Project->Settings->link->Object/library modules space.



-= Kill them all, you're a God =-

Edited by - kwizatz on February 19, 2002 7:11:11 PM
I thank you... I remember that''s what I was suppose to add last time... but now, I don''t know what the problem is... their are 24 warnings but those are float to double differences, nothing. however their are errors I don''t understand... sigh, I am really grateful to anyone to can help and who has helped so far. But OMG, All these "syntax errors" saying that there is a ";" missing before another statement... when there not suppose to have them there.. argg!!Thanks. I''m just 14... ahh.. X.X

c:\pong\lesson 10.cpp(364) : error C2143: syntax error : missing '';'' before ''if''
c:\pong\lesson 10.cpp(365) : error C2143: syntax error : missing '';'' before ''{''
c:\pong\lesson 10.cpp(365) : error C2447: missing function header (old-style formal list?)
c:\pong\lesson 10.cpp(370) : error C2143: syntax error : missing '';'' before ''else''
c:\pong\lesson 10.cpp(371) : error C2143: syntax error : missing '';'' before ''{''
c:\pong\lesson 10.cpp(371) : error C2447: missing function header (old-style formal list?)
c:\pong\lesson 10.cpp(376) : error C2065: ''WindowRect'' : undeclared identifier
c:\pong\lesson 10.cpp(376) : error C2065: ''dwStyle'' : undeclared identifier
c:\pong\lesson 10.cpp(376) : error C2065: ''dwExStyle'' : undeclared identifier
c:\pong\lesson 10.cpp(376) : error C2501: ''AdjustWindowRectEx'' : missing storage-class or type specifiers
c:\pong\lesson 10.cpp(376) : error C2373: ''AdjustWindowRectEx'' : redefinition; different type modifiers
c:\program files\microsoft visual studio\vc98\include\winuser.h(6038) : see declaration of ''AdjustWindowRectEx''
c:\pong\lesson 10.cpp(376) : error C2078: too many initializers
c:\pong\lesson 10.cpp(379) : error C2143: syntax error : missing '';'' before ''if''
c:\pong\lesson 10.cpp(392) : error C2143: syntax error : missing '';'' before ''{''
c:\pong\lesson 10.cpp(392) : error C2447: missing function header (old-style formal list?)
c:\pong\lesson 10.cpp(406) : error C2065: ''bits'' : undeclared identifier
c:\pong\lesson 10.cpp(420) : error C2143: syntax error : missing '';'' before ''if''
c:\pong\lesson 10.cpp(421) : error C2143: syntax error : missing '';'' before ''{''
c:\pong\lesson 10.cpp(421) : error C2447: missing function header (old-style formal list?)
c:\pong\lesson 10.cpp(427) : error C2143: syntax error : missing '';'' before ''if''
c:\pong\lesson 10.cpp(428) : error C2143: syntax error : missing '';'' before ''{''
c:\pong\lesson 10.cpp(428) : error C2447: missing function header (old-style formal list?)
c:\pong\lesson 10.cpp(434) : error C2143: syntax error : missing '';'' before ''if''
c:\pong\lesson 10.cpp(435) : error C2143: syntax error : missing '';'' before ''{''
c:\pong\lesson 10.cpp(435) : error C2447: missing function header (old-style formal list?)
c:\pong\lesson 10.cpp(441) : error C2143: syntax error : missing '';'' before ''if''
c:\pong\lesson 10.cpp(442) : error C2143: syntax error : missing '';'' before ''{''
c:\pong\lesson 10.cpp(442) : error C2447: missing function header (old-style formal list?)
c:\pong\lesson 10.cpp(448) : error C2143: syntax error : missing '';'' before ''if''
c:\pong\lesson 10.cpp(449) : error C2143: syntax error : missing '';'' before ''{''
c:\pong\lesson 10.cpp(449) : error C2447: missing function header (old-style formal list?)
c:\pong\lesson 10.cpp(455) : error C2501: ''ShowWindow'' : missing storage-class or type specifiers
c:\pong\lesson 10.cpp(455) : error C2373: ''ShowWindow'' : redefinition; different type modifiers
c:\program files\microsoft visual studio\vc98\include\winuser.h(3070) : see declaration of ''ShowWindow''
c:\pong\lesson 10.cpp(455) : error C2078: too many initializers
c:\pong\lesson 10.cpp(456) : error C2501: ''SetForegroundWindow'' : missing storage-class or type specifiers
c:\pong\lesson 10.cpp(456) : error C2373: ''SetForegroundWindow'' : redefinition; different type modifiers
c:\program files\microsoft visual studio\vc98\include\winuser.h(5553) : see declaration of ''SetForegroundWindow''
c:\pong\lesson 10.cpp(456) : error C2440: ''initializing'' : cannot convert from ''struct HWND__ *'' to ''int''
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
c:\pong\lesson 10.cpp(457) : error C2501: ''SetFocus'' : missing storage-class or type specifiers
c:\pong\lesson 10.cpp(457) : error C2373: ''SetFocus'' : redefinition; different type modifiers
c:\program files\microsoft visual studio\vc98\include\winuser.h(4103) : see declaration of ''SetFocus''
c:\pong\lesson 10.cpp(457) : error C2440: ''initializing'' : cannot convert from ''struct HWND__ *'' to ''int''
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
c:\pong\lesson 10.cpp(458) : error C2065: ''width'' : undeclared identifier
c:\pong\lesson 10.cpp(458) : error C2065: ''height'' : undeclared identifier
c:\pong\lesson 10.cpp(458) : error C2501: ''ReSizeGLScene'' : missing storage-class or type specifiers
c:\pong\lesson 10.cpp(458) : error C2373: ''ReSizeGLScene'' : redefinition; different type modifiers
c:\pong\lesson 10.cpp(219) : see declaration of ''ReSizeGLScene''
c:\pong\lesson 10.cpp(458) : error C2078: too many initializers
c:\pong\lesson 10.cpp(460) : error C2143: syntax error : missing '';'' before ''if''
c:\pong\lesson 10.cpp(461) : error C2143: syntax error : missing '';'' before ''{''
c:\pong\lesson 10.cpp(461) : error C2447: missing function header (old-style formal list?)
c:\pong\lesson 10.cpp(467) : error C2143: syntax error : missing '';'' before ''return''
c:\pong\lesson 10.cpp(468) : error C2143: syntax error : missing '';'' before ''}''
c:\pong\lesson 10.cpp(468) : error C2143: syntax error : missing '';'' before ''}''
c:\pong\lesson 10.cpp(468) : error C2143: syntax error : missing '';'' before ''}''
c:\pong\lesson 10.cpp(474) : error C2143: syntax error : missing '';'' before ''{''
c:\pong\lesson 10.cpp(474) : error C2447: missing function header (old-style formal list?)
sorry but all that just tells me you are not placing proper semicolons after each line of code, that, or you are missing some really important header, have you made any changes to the code? are you using the proper version? (NeHe tutorials come in different favors for different compilers/OS)
arg... I don''t know what I''m missing.. I didn''t change the file, it''s the right type of project.. I keep getting those damn errors..... Maybe it has something to do with XP? Or maybe it''s my verison. I have 6.0, is their a more advanced verison of Mircosoft Visual C++ Standard? has it been out since last july?
Hey i remember seeing all those once...you will never guess waht i did.

Start over or just throw it away. 6.0 is most current, at least pretty sure. i dont know what all that shit means, but most of it has to do with not linking correctly...i think

Do me a favor, go to the compiler, and press Alt-f7, go to the link tab, and at the bottom copy ALL the project options, and past them in the field that says Object/libriries moduals, or somthing like that. Then try to run it. Maybe that will work *rolling eyes* iff all that dont work then try reinstalling your compiler.

[edit] why the hell did i put through instead of throw...-

Edited by - DarkHunter on February 20, 2002 10:12:39 PM
well i wish i had read the responses, now i feel stupid. Goodnight all...

This topic is closed to new replies.

Advertisement