I edited the Path in Environment Variables and added this:
C:\irrlicht-1.5\include
and
C:\irrlicht-1.5\lib\Win32-gcc
But when I compile from the command prompt it tells me "Error: Unable to open "irrlicht.h". What am I doing wrong?
"In Space, there is Liberty" - Epsilon
... at least there's SOMETHING up there...
You probably need to tell your compiler where to find the Irrlicht header and library files. If you are compiling from the command line, you need to add a -I<path> flag to the compile line. Just replace <path> with the path to the Irrlicht headers. You need to add a -L<path> flag to the link line also, but the <path> would be the path to the Irrlicht library file.
I don't know what version of the Borland compiler you're using, but you probably want to #include <iostream> instead of <iostream.h>. The one you're currently using usually is the home for the old C++ IOStreams library which is probably not in namespace std and is old/defunct.
There is no space between the -I and <path>. You should be able to type bcc32 --help or bcc32 /? to get a list of the command line arguments you may use with your compiler. If you are going to avoid using an IDE, you should get familiar with them, and you should probably look over (and even copy) the makefile used by the Irrlicht examples.
Like I said in my previous post, you should really have a look at the documentation for your compiler and the makefile that is used to build the examples.
functions containing while are not expanded inline
for each .h file...
All of these are warnings. But after a while the console just says "too many errors or warnings". Is there a way to fix these warnings, or is there a way to make the console just continue, ignoring the warnings?
"In Space, there is Liberty" - Epsilon
... at least there's SOMETHING up there...
According to this
you need to add -w-inl or something similar to your command line to disable that warning, or perhaps it's because you have a bcc32.cfg that already contains -w and you need to remove that line, or set the maximum number of warnings. Should all be in the docs anyway.
bitplane wrote:According to this
you need to add -w-inl or something similar to your command line to disable that warning, or perhaps it's because you have a bcc32.cfg that already contains -w and you need to remove that line, or set the maximum number of warnings. Should all be in the docs anyway.
Nope still gives me warnings!
"In Space, there is Liberty" - Epsilon
... at least there's SOMETHING up there...
Learn to use your compiler, or use one that others actualy use. I suggest you use Microsoft Visual C++ Express. It is free, is easy to use, has an excellent debugger, and will build Irrlicht without problems.
vitek wrote:Learn to use your compiler, or use one that others actualy use. I suggest you use Microsoft Visual C++ Express. It is free, is easy to use, has an excellent debugger, and will build Irrlicht without problems.
Travis
Yes it's free and easy and doesn't work with Vista Home Premium because of the "Create Project" error. TextPad w/ C++ sucks, DevC++ sucks, don't even get me STARTED on Ecipse...
"In Space, there is Liberty" - Epsilon
... at least there's SOMETHING up there...
I don't know what Create Project error you're speaking of, but I'm using it just fine here. I use it on XP Pro at work and on Vista Home Premium upstairs in my home office.