Advertisement

From 21 to 1 error: one last bit o brainstormin...

Started by November 13, 2000 09:49 AM
1 comment, last by Jjesterr 24 years, 1 month ago
OK, thanks to the genius of Neophyte, i only have on error now. and it is: Linking... LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Debug/Lesson5.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. Lesson5.exe - 2 error(s), 0 warning(s) I think this might have somthing to do with another file missing, but i dont know.... neone have ne idea? Thanks!! Jjesterr "A smile can take you a long way. A smile and a gun will take you even farther" - Al Capone
"A smile can take you a long way. A smile and a gun will take you even farther" - Al Capone
You have made a console application instead of normal win32. Make a new project and copy your source files.
Advertisement
I would guess that you have made your program a Win32 console application rather than a Win32 Application. The console-application is basically for running your app in a DOS-window, and needs a standard (DOS-standard anyway)
int main (int argc, char** argv)
function, rather than the WinMain function.

You have two options here.
The easy one is to create a new Win32 Application project, and cut-and-paste the code from the old project.
Alternatively you could do the following two things:
- Select Project->Settings from the menu.
-- In the "Preprocessor definitions"-field under the "C/C++" tab
change the part saying _CONSOLE to _WINDOWS
-- Under the "Links" tab look near the bottom of the "Project Options" textarea (bottom of dialog-box). There you will find a parameter that says "/subsystem:console". Change this to read "/subsystem:windows".

That should do the trick.

~Neophyte

- Death awaits you all with nasty, big, pointy teeth. -

This topic is closed to new replies.

Advertisement