Compileing VB9

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
namespace
Posts: 7
Joined: Thu Jul 09, 2009 6:30 pm

Compileing VB9

Post 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)
namespace
Posts: 7
Joined: Thu Jul 09, 2009 6:30 pm

Post 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.
CuteAlien
Admin
Posts: 9721
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post 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.
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
Post Reply