• Advertisement

Archived

This topic is now archived and is closed to further replies.

OpenGl trouble.

This topic is 6356 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello hello peole. You will all have to promise not to laugh at me for this ... , but I would really appreciate some help. I thought I would spend my free time learning OpenGl, and so naturally I went over to the tutorials here on Gamedev, I use visual C++ 6.0, but the thing is something is wrong ... I do believe I have properly added the three headers. Project->Add to project->file, and then added ‘Opengl32.lib’, ‘Glu32.lib’ and ‘Glaux.lib’. This happened even when I try to compile the examples I have downloaded. This is what happens, compiling it works just great! No errors or anything, but when I run the project it gives me 2 errors ‘unresolved external symbol _WinMain@16’ and ‘1 unresolved externals’ And this is not just one program, it’s all I try to compile everything which uses OpenGl ... any idea what could be wrong?

Share this post


Link to post
Share on other sites
Advertisement
Did you create the project as a console application or as a Win32-Application ?
It has to be a Win32 application !

Share this post


Link to post
Share on other sites
Oh yes! I may be a newbie, but I''m not stupid!
... anyone else know what could be wrong?

Share this post


Link to post
Share on other sites
Maybe you forgot to write your function declarations at the top or in a header file.

|-|A[k3R$Z R \/\/|-|AT |V|Ak3 t|-|3 \/\/0R|_D g0 R0|_||\|D!!

Share this post


Link to post
Share on other sites
Hi!

I don''t know how this is done in VC6 but in VC5 you have to go to the project configuration, seek the linker tab and add
opengl32.lib and glu32.lib to the line with all the other libs.

By the way, the header files are the ones with the extension ''.h'', not the ones with ''.lib''

cu

Share this post


Link to post
Share on other sites
You have to do Tools->Project Settings... and then the link tab, and add them to the end of the list.

------------------------------
#pragma twice

Share this post


Link to post
Share on other sites
"unresolved external symbol _WinMain@16" means that the linker cannot find the function WinMain. i believe the @16 means the function takes 16 bytes as parameters. basically this means that you have not written a WinMain function, and if you have, either: you function is not taking the correct number of arguments or the compiler/linker cannot find your function.

Share this post


Link to post
Share on other sites

  • Advertisement