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
Printable View
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
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
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
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