I can compile the examples just fine, but when I write a new program, it doesn't find the irrlicht lib. Here's what I did.
tools>options>Projects and Solutions>VC++ Directories and then added the include folder in include, and the win 64 library in the library screen. I then saved my new program elsewhere, posted the hello world code in to make sure it was not an error, and it doesn't compile correctly.
How can I get it to compile no matter where my file is.
(I searched the forum for "LINK : fatal error LNK1104: cannot open file 'Irrlicht.lib'" but it gives me a blank page every time, there might be to many results to count, lol)
Compileing VB9
There are two steps on creating executables (even if you only have to press one button in your IDE). First compiling which creates one object file for each .cpp (or .c) which will contain then some object code (basically assembler). Then the second step is linking which puts all the object files (or objectfiles + other libraries) together into either a library or an executable.
Include files contain source code - so they are only needed in the compile-step. Adding include folders means you can do #include "myfile" without having to specify the folder for that file.
If you get a linker error on the other hand this has nothing to do with compiling (and include folders needed in compiling) but with linking. And if you read the error - it just tells you what is happening - it does not find the library needed in linking. So look for linker directories.
Include files contain source code - so they are only needed in the compile-step. Adding include folders means you can do #include "myfile" without having to specify the folder for that file.
If you get a linker error on the other hand this has nothing to do with compiling (and include folders needed in compiling) but with linking. And if you read the error - it just tells you what is happening - it does not find the library needed in linking. So look for linker directories.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm