Advertisement

Help again - basic win32 app

Started by February 25, 2001 04:35 PM
2 comments, last by ShadCNewbie 23 years, 11 months ago
Hi again everyone. I''m having major troubles with understanding file relationships in C++, and I''ve come across another what''s probably, really simple problem. Basically I''m making that first window, but having difficulties. I can get it to compile and what not, but when I try to link it, it says: LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Debug/WinTut.exe : fatal error LNK1120: 1 unresolved externals Can someone just translate what that is to English please? That way I might have a chance of sussing it out before I start actually listing all of my code in this forum. Thanks in advance.
that means that you have tried to create a console application instead of a win32 application
start MSVC over from scratch and and when you create a new project...make sure it is a win32 project


"Now go away or I shall taunt you a second time"
- Monty Python and the Holy Grail
Advertisement
unresolved external symbol main

means

I can''t find a symbol called main in your program

meaning the linker is looking for something called main but can''t find it because it isn''t in your program.

main is needed for console apps, so you''ve selected the wrong type of project. You need to select a windows type application.
Gee Brain, what we gonna do tonight?
rah! It must make it a console app by default then? Because I wrote out the source code in a blank source code file.

Oh well, thanks for the help! I''ll get there someday.

This topic is closed to new replies.

Advertisement