building Tutorial 1
Deleting intermediate files and output files for project ''Lesson2 - Win32 Debug''.
--------------------Configuration: Lesson2 - Win32 Debug--------------------
Compiling...
Lesson2.cpp
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/Lesson2.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Lesson2.exe - 2 error(s), 0 warning(s)
i keep getting this message when i try to build the program.
i already linked the opengl files.
im using VC++ 6.0.
any help will be appreciated.
this is the debug info from lesson two, lesson one and two have the same problem.
I´m not sure, but do you have the right project-type? If you use main as starting function then you need a console-application as project type, if you are using some type of WinMain then you´ll need win32 application...
Try i don´t know where did you get the code, but in the file Lesson2.cpp, try creating a "int main()" function and call the WinMain function (if any)
Maybe like this
If God with me, Who against me?
Maybe like this
int main(){ return WinMain(bla bla bla bla...);}
If God with me, Who against me?
--------------------------------------------- If God with me, Who against me?Personal Web Samuel Prince Blog...
February 07, 2003 02:01 PM
It seems that there is a linking problem with the library you are trying to use. make sure you have inlcuded the proper directories of the libs in the tools->options->directories as well as under project->settings->link
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement