tga link errors

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.

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

Thanks!