Click to See Complete Forum and Search --> : Runtime Error, C++,Urgent


suresh_kolguri
August 9th, 1999, 08:29 AM
I have a program, when i run it on vc++ environment,has no compilation errors,but gives a runtime linker error libcd.lib(crt0.obj) unresolvable external symbol _main.Which i tried unable to rectify it.Urgent

Suresh kumar K

Martin Speiser
August 9th, 1999, 08:58 AM
Hi,

if you want to write a Windows app you have the wrong options in the Project Settings. If you're writing a console app you need to define a main() function, which is the entry point for the whole app.

Martin

suresh_kolguri
August 9th, 1999, 09:07 AM
I tried my level best with the settings,it is sdk program.Could you help me with some more information.I even tried for console app,so success.

Suresh kumar K

Martin Speiser
August 9th, 1999, 02:07 PM
An SDK program? Du you mean a program for Windows written in C? Okay, did you run the Ressource Compiler? Even if you don't have ressources in your program it will "stamp" it so that the Exe loader recognizes the correct subsystem.

Martin