VS2008 setup problems

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
JJJohan
Posts: 7
Joined: Thu Dec 18, 2008 11:49 am
Location: Brisbane, Australia
Contact:

VS2008 setup problems

Post by JJJohan »

I'm trying to use Visual Studio 2008 to compile my Irrlicht projects but I'm having trouble including the necessary header files as I seem to be getting a linker error:

Code: Select all

1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) class irr::IrrlichtDevice * __cdecl irr::createDeviceEx(struct irr::SIrrlichtCreationParameters const &)" (__imp_?createDeviceEx@irr@@YAPAVIrrlichtDevice@1@ABUSIrrlichtCreationParameters@1@@Z) referenced in function _main
I have done the following to set up my program:

Go to tools > options > projects and solutions > VC++ directories
-Added C:\irrlicht\include to the "Include files" tab
-Added C:\irrlicht\lib\Win32-visualstudio to the "library files" tab

I know it is not an issue with the code as I am using something that had previously worked in CodeBlocks.

I have done a search, and I had only found one thread on the MSVC setup (the steps I have done above) and they did not seem to work.
Ion Dune
Posts: 453
Joined: Mon Nov 12, 2007 8:29 pm
Location: California, USA
Contact:

Post by Ion Dune »

Is this somewhere in your code?

Code: Select all

#pragma comment( lib , "Irrlicht.lib" )
JJJohan
Posts: 7
Joined: Thu Dec 18, 2008 11:49 am
Location: Brisbane, Australia
Contact:

Post by JJJohan »

Yes, I'm using a tutorial code as base. It includes:

Code: Select all

//#ifdef _MSC_VER
//#pragma comment(lib, "Irrlicht.lib")
//#endif
Hang on, they're commented..

Yay! Thanks, I can't believe I didn't notice that..
Post Reply