Archived

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

homeboy

Simple Problem with GLUT

Recommended Posts

homeboy    122
Im am trying to create a simple GLUT window and I can't even do that! The code is straight out of a book so i know theres no problem in that, its in the linking. I have listed the libraries in the project settings. VC++ 6.0 gives me this error --------------------Configuration: GLUT - Win32 Debug-------------------- Linking... LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16 Debug/GLUT.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. GLUT.exe - 2 error(s), 0 warning(s) ---------------------- I put glut32.dll in the Windows/system directory, glut32.lib in the VC++ directory and glut.h in the header folder. Whats going on? Edited by - homeboy on December 18, 2001 5:55:23 PM

Share this post


Link to post
Share on other sites
ATronic    122
Make a consol application. Now go to my website.

http://www.a-tronic.com/Development/default.htm

Go to downloads and get glutframework.zip

It can generate the code you need. Paste it in the project and start from there. Whatever your problem was, it should solve it.

Alex Broadwin
A-Tronic Software & Design
-----
"if you fail in life, you were destined to fail. If you suceed in life, call me."
"The answer is out there."
"Please help, I''m using Windows!"

Share this post


Link to post
Share on other sites
ATronic    122
Oh, and let me know if there are any problems, there may be bugs. This is a good program for learning basic glut. Key word: basic.

Alex Broadwin
A-Tronic Software & Design
-----
"if you fail in life, you were destined to fail. If you suceed in life, call me."
"The answer is out there."
"Please help, I''m using Windows!"

Share this post


Link to post
Share on other sites
homeboy    122
Well, i thought i made a windows console applicationt hte first time, but i guess this wasn''t the case. For when i tried a third time and repasted the code, it worked!!! Yay. texturing here i come!

Share this post


Link to post
Share on other sites
ATronic    122
Good good. Just look at the initial code. If it has WinMain, it''s win32, if it has Main, it isn''t.

Alex Broadwin
A-Tronic Software & Design
-----
"if you fail in life, you were destined to fail. If you suceed in life, call me."
"The answer is out there."
"Please help, I''m using Windows!"

Share this post


Link to post
Share on other sites