Error compiling the Demo from irrlicht 1.4.1

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
Laptev
Posts: 27
Joined: Tue Jun 03, 2008 4:36 am
Location: Romania

Error compiling the Demo from irrlicht 1.4.1

Post by Laptev »

When i try to compile the (unmodified main.cpp)Demo from the exemple directory in irrlicht 1.4.1 i get o couple of errors...
I want to know if the problem is from my compiler ( Microsoft Visual C++ 6.0 ) or the script has some bugs
Thanx .
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Well why not start by telling us what the errors are? We can't read your mind so can't tell you whether the errors are your compiler or not ;)
Image Image Image
Laptev
Posts: 27
Joined: Tue Jun 03, 2008 4:36 am
Location: Romania

Post by Laptev »

I didn't post the errors because are lots of them...

When i compile the main.cpp i get :
Linking...
main.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall CDemo::~CDemo(void)" (??1CDemo@@UAE@XZ)
main.obj : error LNK2001: unresolved external symbol "public: void __thiscall CDemo::run(void)" (?run@CDemo@@QAEXXZ)
main.obj : error LNK2001: unresolved external symbol "public: __thiscall CDemo::CDemo(bool,bool,bool,bool,bool,enum irr::video::E_DRIVER_TYPE)" (??0CDemo@@QAE@_N0000W4E_DRIVER_TYPE@video@irr@@@Z)
main.obj : error LNK2001: unresolved external symbol "public: bool __thiscall CMainMenu::run(bool &,bool &,bool &,bool &,bool &,enum irr::video::E_DRIVER_TYPE &)" (?run@CMainMenu@@QAE_NAA_N0000AAW4E_DRIVER_TYPE@video@irr@@@Z)
main.obj : error LNK2001: unresolved external symbol "public: __thiscall CMainMenu::CMainMenu(void)" (??0CMainMenu@@QAE@XZ)
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/main.exe : fatal error LNK1120: 6 unresolved externals
Error executing link.exe.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Those are linker errors, so you didn't produce a proper project file, because not all .o files are linked into your resulting application.
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Re: Error compiling the Demo from irrlicht 1.4.1

Post by rogerborg »

Laptev wrote:Microsoft Visual C++ 6.0
Ewww. I still have to use MSV"C++" 6.0 in my work, but there's no reason to inflict it on yourself unless absolutely necessary. It will not compile DX9 headers, for one thing (because it's not strictly a C++ compiler).

Visual C++ Express 2008 is free, and vastly better. If it won't run on your machine (2K Pro FTW) then Visual C++ Express 2005 is still available. I would strongly urge you to upgrade.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Strange thing is that many people complain about wrong overload resolutions, where VC6 tries to use the three parameter core::max_ instead of the two parameter version, or vice versa. This is really :evil:
If someone knows how to fix this I'd really appreciate any help, and it seems to work here because the compiler did compile the file somehow...
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

Sorry, I just can't see that it's worthwhile investing any time in supporting MSV"C++" 6.0 any more. Microsoft don't do it.

I'd advocate simply dropping support for it from 1.5 onwards, and removing the project files.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Post Reply