problems compiling

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
inovermyhead
Posts: 26
Joined: Mon Aug 03, 2009 2:16 pm

problems compiling

Post by inovermyhead »

I am using vs 2008 express edition The erros are linking errors. Here is waht i did I went to tools/options / vC++directories then i added the include and the lib files When i try to compile the heelo world examplei get

------ Build started: Project: hhhhh, Configuration: Debug Win32 ------
Compiling...
cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release
main.cpp
Compiling manifest to resources...
Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
Copyright (C) Microsoft Corporation. All rights reserved.
Linking...
LINK : fatal error LNK1104: cannot open file 'Irrlicht.lib'
Build log was saved at "file://c:\3Dfish\gameengine\irrlicht-1.5\examples\01.HelloWorld\Debug\BuildLog.htm"
hhhhh - 1 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


I thought i did eberything okay tell me what's wrong
Thanks

inovermyhead
Murloc992
Posts: 272
Joined: Mon Apr 13, 2009 2:45 pm
Location: Utena,Lithuania

Post by Murloc992 »

It says that it can't open the lib. Maybe it is not where you set the path?

The path should be like: C:\MyCpp\Irrlicht\Lib\MSVC\
And folder must contain Irrlicht.lib file inside it :)

I think you get it. :roll:
Seven
Posts: 1034
Joined: Mon Nov 14, 2005 2:03 pm

Post by Seven »

the linker cannot find the file

LINK : fatal error LNK1104: cannot open file 'Irrlicht.lib'


you need to add the path to that file in your project settings. in VC it is Tools->Options->Projects and Solutions->VC++ Directories select library files and add the path there.

Murloc992 beat me to it :)
inovermyhead
Posts: 26
Joined: Mon Aug 03, 2009 2:16 pm

Post by inovermyhead »

My path is different but everything is there include and lib files and i went to tools options projects solutions/ VC++ directories I can't see the problem

C:\3Dfish\gameengine\irrlicht-1.5\lib

C:\3Dfish\gameengine\irrlicht-1.5\include

It should work. I did something worng. Thanks anyway

inovermyhead
Sylence
Posts: 725
Joined: Sat Mar 03, 2007 9:01 pm
Location: Germany
Contact:

Post by Sylence »

inovermyhead wrote:C:\3Dfish\gameengine\irrlicht-1.5\lib
The lib folder has some subfolders where the actual libraries are stored. For Visual Studio this would be win32-visualstudio

So the path should be:
C:\3Dfish\gameengine\irrlicht-1.5\lib\win32-visualstudio
Software documentation is like sex. If it's good you want more. If it's bad it's better than nothing.
inovermyhead
Posts: 26
Joined: Mon Aug 03, 2009 2:16 pm

Post by inovermyhead »

Yeah , i did that but now i am getting a .dll error. Not sure why. what i will do is fool with it and maybe i can get it to work thanks for your help

inovermyhead
Sylence
Posts: 725
Joined: Sat Mar 03, 2007 9:01 pm
Location: Germany
Contact:

Post by Sylence »

What "dll error" exactly ?
Software documentation is like sex. If it's good you want more. If it's bad it's better than nothing.
Virion
Competition winner
Posts: 2148
Joined: Mon Dec 18, 2006 5:04 am

Post by Virion »

have you compiled irrlicht? do you mean irrlicht.dll not found?
inovermyhead
Posts: 26
Joined: Mon Aug 03, 2009 2:16 pm

Post by inovermyhead »

I did not go into detail because i did not want to bother you. I am a beginner and trying to figure it out for myself. No luck so far. Yes i get " this application failed because irrlicht.dll was not found I have tried going to many different folders

inovermeyhead
cobra
Posts: 371
Joined: Fri Jan 23, 2009 2:56 am
Location: United States
Contact:

Post by cobra »

Drag Irrlicht.dll into the folder that your application is in.

If that doesn't work, are you running the application from inside MSVC? Like testing it? If you are, make sure you set the working directory of your application to the folder that your executable is in that so it can find the .dll. Run the application from the folder and not from inside MSVC, and see if that works.
Josiah Hartzell
Image
inovermyhead
Posts: 26
Joined: Mon Aug 03, 2009 2:16 pm

Post by inovermyhead »

Dragging it worked. i guess i have a long way to go before i get comfortable with irrlicht. Thanks to everyone for their help

inovermyhead
Post Reply