vc++ build error on lesson1
Hi
on vc++ 6 when i build lesson 1 i get the error.
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/Lesson1.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Lesson1.exe - 2 error(s), 0 warning(s)
i''ve looked on google groups and there''s messages talking about
removing references to _ATL_MIN_CRT in project,settings
but i cant find anything about this _ALT_MIN_CRT
can anyone help please?
browolf
I did not compile lesson1 , but i belive you are missing the main() function . maybe the main file (cpp) is not in the project ?
in the file view it says:
Workspace ''Lesson1'': 1 projects(s)
- Lesson 1 files
|-lesson1.cpp
-- External Dependencies
|- basetsd.h
Workspace ''Lesson1'': 1 projects(s)
- Lesson 1 files
|-lesson1.cpp
-- External Dependencies
|- basetsd.h
which version did you download from the site ?
please give me the full link or copy paste the #includes lines.
please give me the full link or copy paste the #includes lines.
#include <windows.h> // Header File For Windows
#include <gl\gl.h> // Header File For The OpenGL32 Library
#include <gl\glu.h> // Header File For The GLu32 Library
#include <gl\glaux.h> // Header File For The Glaux Library
those gl header files are definately there.
i downloaded this:
http://nehe.gamedev.net/data/lessons/vc/lesson01.zip
would the contents of the .plg file be handy?
#include <gl\gl.h> // Header File For The OpenGL32 Library
#include <gl\glu.h> // Header File For The GLu32 Library
#include <gl\glaux.h> // Header File For The Glaux Library
those gl header files are definately there.
i downloaded this:
http://nehe.gamedev.net/data/lessons/vc/lesson01.zip
would the contents of the .plg file be handy?
you have created a consule application which needs main() as its entry point
the tutorial has WinMain(...) as its entry point
create a win32 app (not win32 console app) and it will work
the tutorial has WinMain(...) as its entry point
create a win32 app (not win32 console app) and it will work
yeah that''s it. I figured it out, but i couldnt come and say cos the site started being blocked by the upstream filtering at work.
doh!
i was opening the cpp file and then when i compiled vc++ automatically created a win32 console workspace not a win32 application workspace.
cheers
doh!
i was opening the cpp file and then when i compiled vc++ automatically created a win32 console workspace not a win32 application workspace.
cheers
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement