Member Avatar for GreenDay2001

I use Visual c++ 6.0 enterprise. However, for few days i am not being able to build any program due to some linker error. I am getting following message,

--------------------Configuration: main - Win32 Debug--------------------
Compiling...
view.cpp
winmaker.cpp
control.cpp
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/main.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

main.exe - 2 error(s), 0 warning(s)

How could i fix this problem.

vishesh

Looks like your project doesn't have a main function in any of the source files.

from the list of filenames it appears you are trying to build a win32 program but created a console project instead of a windows project. If that is true then the easiest way to correct the problem is to recreate a new windows project then copy your files into it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.