Skip to main content
gamedev.net
🔒 Locked

Problem

Started by Kheteris Sep 4, 2003 at 12:51 PM 3 replies 400+ views
Original Post
Kheteris
Kheteris
Howdy! I posted this on NeHe''s forum too and decided to post here aswell just in case some of you OpenGLers don''t read NeHe''s forum. Well anyways, I was following NeHe''s tutorial, excellent by the way and I downloaded one of the pre-made programs(lesson 6). I ran the .exe and the box was cool and all and the tutorial said I should try loading one of my own images to be the design on the box. Well anyways, I open the .cpp and edit everything I need to edit to make the image something else, but here is where I run into a problem. The only way I know to change the .exe is to run the .cpp but whenever I do, I get a fatal error. Thus I can''t see the box with my own image. I added the "OpenGL32.lib GLu32.lib GLaux.lib" The .bmp is the right size too. Here''s what the error is... seems like jibberish to me. --------------------Configuration: Lesson6 - Win32 Debug-------------------- Linking... LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Debug/Lesson6.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. Lesson6.exe - 2 error(s), 0 warning(s) Got an idea on how to fix this error? Please help.
Martel
Martel
I''m not sure what''s in the source you''re trying to compile, but the compiler is telling you that there is no main() function. Which sounds like maybe you''re not linking to some expected library like SDL or GLUT or something?
Kheteris
Kheteris
I checked the .cpp and there is no main() function. I rechecked the tutorial and he never includes it...

Got a new idea on what I'm doing wrong?

[edited by - Kheteris on September 4, 2003 2:20:38 PM]
Brother Bob
Brother Bob
Check NeHe''s first tutorial on how to create a window. More exactly, this line.
quote:

After you have created a new Win32 Application (NOT a console application) in Visual C++, ...

Topic Locked

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

Sign in to reply to this topic.