PDA

View Full Version : tga link errors



tarpitz
03-11-2001, 10:14 AM
I've used a couple of tga conversion programs and get the same errors shown below. I must have a configuration problem but I have no clue. Could someone give me a hint?

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

Deiussum
03-11-2001, 05:39 PM
You don't have a main function. You probably started your project as a Win32 Console rather than a Win32 Application, but then used WinMain instead of main... The main difference between the two types of project is the function that is used as an entry point.

Win32 Console entry-point == main
Win32 Application entry-point == WinMain

tarpitz
03-11-2001, 06:31 PM
Thanks!