Page 1 of 1

Compileing VB9

Posted: Thu Jul 23, 2009 5:43 pm
by namespace
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)

Posted: Thu Jul 23, 2009 10:16 pm
by namespace
I found the add include dependencies for a specific project menu, but I'm still trying to figure out how to add the lib library to a specific project, and globally. The first tutorial doesn't even run in another file, and I did try to add it to the global include/ library like I said above.

Posted: Thu Jul 23, 2009 11:05 pm
by CuteAlien
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.