here it is:
Seems to occur at the end of the compiling stage when it starts the linker.exeCode:LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Debug/3D Car.exe : fatal error LNK1120: 1 unresolved externals
here it is:
Seems to occur at the end of the compiling stage when it starts the linker.exeCode:LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Debug/3D Car.exe : fatal error LNK1120: 1 unresolved externals
Last edited by Skynet-systems; 04-08-2005 at 02:27 PM.
That usually means that you have a function declared in another file, but it's never defined.
Do you always have this problem compiling programs? If so, perhaps you have a library in the wrong place.
Most of the time this error occurs when creating a windows application (ie. using WinMain()), but your project settings are for a console application (ie. looks for main()).
If you use something like Visual C++, you'll simpley have to create a new project and make sure you specify a "Win32 Application", and not a console application.
If you are creating a console application, make sure you've correctly specified the prototype for your main() function
Hope that helps!Code:int main(void) { // your code here }
[Edit: DOH! Beaten to it again ]
Yep, for me that always means a missing main function, usually when I'm checking for errors in functions and haven't written a main yet. Are you running a console app or windows app?
Thanks, got it fixed. Your all so much help, me loves this site