On Mon, 29 Dec 2003 06:54:24 GMT, "LuCk" <> wrote
in comp.lang.c++:
> I compile a program and there are no compiling errors....but when i go to
> build the program or execute it, i get the following error:
>
> ----------------------------------------------------------
> Linking...
> LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
> Debug/Skeleton.exe : fatal error LNK1120: 1 unresolved externals
> Error executing link.exe.
> ----------------------------------------------------------
>
> I think it has something to do with including the skeleton.ico and the
> skeleton_sm.ico files(icon files)
> but i really dont know. The icon files are in the same directory as the
> skeleton.cpp file.
All standard C++ programs begin execution at a function provided by
the program named main() that returns an int. Your linker is
complaining that you did not provide such a function, so it is unable
to make a valid C++ program.
If you are making some platform specific program that does not start
with a function named main() that returns an int, it is not standard
C++ and is off-topic here. You need to ask in a group that supports
your compiler and platform.
--
Jack Klein
Home:
http://JK-Technology.Com
FAQs for
comp.lang.c
http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++
http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
ftp://snurse-l.org/pub/acllc-c++/faq