• Advertisement

Archived

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

help!!

This topic is 5101 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

i donwloaded the lesson 1 source code..but when compile...it said "can not find the file and.obj" Please help me to get thru this.... thanks alot

Share this post


Link to post
Share on other sites
Advertisement
No...it can''t found the files...
i did include all the header files...but still not working

Share this post


Link to post
Share on other sites
I meant the MS Visual Studio function search in files.
Else, try removing all files except the .h and .cpp files and create a new project out of it (note you will have to link the libraries again, or you''ll get a unresolved external symbol, place this in your source file: #pragma comment(lib,"opengl32.lib") ).

Share this post


Link to post
Share on other sites
#pragma comment(lib, "opengl32.lib")
#pragma comment(lib, "glu32.lib")
#pragma comment(lib, "glaux.lib")

i added this 3 lines...but it give me

Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/Main.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

so...what should i do....thanks for reply my post

Share this post


Link to post
Share on other sites
You probably vreated a console application, this needs a main function, the code you use is win32 which uses WinMain.

Share this post


Link to post
Share on other sites

  • Advertisement