MSVC++ 6.0 Compiling Error

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Shadow_Wolf
Posts: 21
Joined: Tue Nov 18, 2003 5:21 am
Location: Longview, Washington

MSVC++ 6.0 Compiling Error

Post by Shadow_Wolf »

I am new to the Irrlicht engine, so please forgive me if I just over read something in the tutorials... But I have just installed and setup (or so I thought) MSVC++ 6.0 with SP5 for use with the Irrlicht engine. I have taken a script that worked fine within Dev-C++ and brought it over to MSVC++, but when I tried to compile I got this error :
Deleting intermediate files and output files for project 'Crow_Adventure - Win32 Debug'.
--------------------Configuration: Crow_Adventure - Win32 Debug--------------------
Compiling...
crow_main.cpp
Linking...
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/Crow_Adventure.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

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

Any help on this error would be greatly appericiated :)
Saalen
Posts: 51
Joined: Thu Sep 04, 2003 7:49 am
Location: Germany
Contact:

Re: MSVC++ 6.0 Compiling Error

Post by Saalen »

Are you sure to use the correct dll?
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

The problem is that you wrote
void main(),
but the compiler is expecting
WinMain().
Change this, or create a console application instead to the Windowsapplication.
Shadow_Wolf
Posts: 21
Joined: Tue Nov 18, 2003 5:21 am
Location: Longview, Washington

Post by Shadow_Wolf »

Niko thanks for the help, all is working fine now :D
Post Reply