Advertisement

10.08.2003 at 02:01AM PDT, ID: 20760345
[x]
Attachment Details

linker error, unresolved external symbol _main

Asked by jramrus in OpenGL Graphics & Game Programming

Tags: external, unresolved, symbol, _main, error

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

I know it is hard to answer linker error problems over the internet, but i searched the net and found several people having similar problems only I did not find any solutions that worked. Any ideas? I setup my opengl on my windows machine following these instructions:
http://www.cis.udel.edu/~haase/640/opengl/openglsetup01.html

just as an example to teach myself how to do 3d text, I am trying to compile the code from this site:
http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=14

I downloaded the 'DOWNLOAD Visual C++ Code For This Lesson. ' code and got it to work yesterday, but somehow something happened and it doesn't work now due to the above linker error. I even tried reinstalling my entire c++ and that did not help. Any advice either on how to fix this error with this code or annother tutorial that can teach me an easy way to do 3d text will be greatly appreciated. Thank you very much.
Start Free Trial
[+][-]10.08.2003 at 02:26AM PDT, ID: 9512129

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: OpenGL Graphics & Game Programming
Tags: external, unresolved, symbol, _main, error
Sign Up Now!
Solution Provided By: sunnycoder
Participating Experts: 1
Solution Grade: A
 
 
[+][-]10.08.2003 at 02:28AM PDT, ID: 9512134

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.08.2003 at 04:31AM PDT, ID: 9512592

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.08.2003 at 08:54AM PDT, ID: 9514167

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.08.2003 at 09:01AM PDT, ID: 9514224

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.08.2003 at 12:46PM PDT, ID: 9515868

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.08.2003 at 09:27PM PDT, ID: 9518292

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32