metalhead wrote:LINK : fatal error LNK1104: cannot open file 'Irrlicht.lib'
The online tutorials can be slightly out of date, but this looks like a configuration problem, or a borked SDK install.
First, look in your Irrlicht SDK, in the directory:
\lib\Win32-visualstudio
Does it contain an Irrlicht.lib file? If not, then re-install your SDK. I'd recommend upgrading to the latest version,
1.4.2 at the time of writing.
If you do have an Irrlicht.lib file, then open BuildAllExamples.sln in MSVC++.
Right click on 01.HelloWorld_vc8, and select Properties.
Under Configuration Properties -> Linker -> General, find the Additional Library Directories property. It should be:
..\..\lib\Win32-visualstudio
If not, make it so.
That should set your IDE up correctly so that it can find Irrlicht.lib
metalhead wrote:
in addition to that:
d:\irrlicht-1.4.1\examples\demo\CDemo.h(21) : fatal error C1083: Cannot open include file: 'irrKlang.h': No such file or directory
I assume you're using Irrlicht 1.4? The first step in any compilation problem is to look at the source:
Code: Select all
#ifdef USE_IRRKLANG
#include <irrKlang.h> // problem here? go to http://www.ambiera.com/irrklang and download
// the irrKlang library or undefine USE_IRRKLANG at the beginning
// of this file.
#ifdef _IRR_WINDOWS_
#pragma comment (lib, "irrKlang.lib")
#endif
#endif
The solution is in the comments. Alternatively, update your SDK to 1.4.1 / 1.4.2 or the SVN trunk, where USE_IRRKLANG is not defined by default.