Advertisement

a problem that has been bothering me.....help

Started by May 10, 2003 07:23 AM
5 comments, last by s0lus 21 years, 9 months ago
ok so im writing a bunch of code and i compile it fun it runs fine everything...then the next day i try to open up my project file and the source file...ok it opens i compile it and guess what i get...22 errors...ok easy to fix...i go to the project settings and add the gl files...ok then i get 2 errors and here they are, please help me out: LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Debug/lesson2.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. why would this do this after it has worked b4?
Did you move anything around since the last time you''ve compiled it?
Advertisement
those are like the errors of death.. I sure hate them. Here''s how I resolve them however idiotic it is.. repaste all my code if it isn''t too large into NeHe''s base code for a window. It usually works. Remember to open the workspace each time too I know with VC++ if you just open the cpp file the program yells at you

My fellow Americans I have just signed legislation that outlaws Russia forever. Bombing will commence in five minutes.
My fellow Americans I have just signed legislation that outlaws Russia forever. Bombing will commence in five minutes.
quote:
Original post by uber_n00b
those are like the errors of death.. I sure hate them. Here''s how I resolve them however idiotic it is.. repaste all my code if it isn''t too large into NeHe''s base code for a window. It usually works. Remember to open the workspace each time too I know with VC++ if you just open the cpp file the program yells at you


Looks like something is corrupting source-code or compiler/linker cache files then, isn''t it?

Newbie programmers think programming is hard.Amature programmers think programming is easy.Professional programmers know programming is hard.
quote:
Original post by uber_n00b
My fellow Americans I have just signed legislation that outlaws Russia forever. Bombing will commence in five minutes.


My fellow Americans ... ur tax dollars went on making sure Sadam has a peaceful retirement, and on that "military parade" in Iraq .....


______________________________
My Website: <link src="http://www.antondev.tk">
or directly at http://home.attbi.com/~antonweb/
"I've read about...doom being used to manage unix programs(you "kill" the processes)" dede


[edited by - snisarenko on May 10, 2003 5:11:15 PM]
You are trying to compile as a win32 console application.
Advertisement
as Xiachunyi said, are you trying to compile it as awin32 console application, if so this IS your problem.

You have to compile it as a Win32 Application, and #include <windows.h>

if you try to compile as a Win32 console application, it will look for a main(); function, but if you compile as a Win32 application, it will look for WinMain or something (i''m not too sure, as i dont use Win32 API...)

anyway, i hope this helps.

Smokey`

This topic is closed to new replies.

Advertisement