Irrlicht in Dev C++

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
xancithus

Irrlicht in Dev C++

Post by xancithus »

I have the newest version of Dev C++ and I got the Irrlicht devpak but it comes up with an error when I try to compile the sample programs

Code: Select all

Line 217 C:\Dev-Cpp\Include\irrlicht\aabbox3d.h unknown escape sequence `\D'
Line 217 C:\Dev-Cpp\Include\irrlicht\aabbox3d.h unknown escape sequence `\I' 
Line 217 C:\Dev-Cpp\Include\irrlicht\aabbox3d.h unknown escape sequence `\i'


The problem does not seem to be code related, since the line numbers for the errors point to blank lines with error-free code before and after them.
(Line 217 is blank and there are no escape sequences near it)

Has anyone come accross this problem and know how to fix it?
Thanks
Master85
Posts: 1
Joined: Mon Nov 14, 2005 11:37 am
Location: Italy
Contact:

Post by Master85 »

I'm sorry,
How did you installed the irrLicht engine ?
I've installed irrlicht in Dev-CPP without any devPack. :shock:
You must download the compressed file (http://prdownloads.sourceforge.net/irrl ... p?download) and extract it where do u want (ex. c:\irrlicht) and then set up options (Includes, Library, Bin) in Dev-CPP.

For your problem:
Line 217 C:\Dev-Cpp\Include\irrlicht\aabbox3d.h unknown escape sequence `\D'

probabily you've used an incorrect escape sequence. For example, if you want to specify a path you must use this sequence: c:/myDir/myImg/img.jpeg and not c:\mydir... Because the character \ is used to define some "special" code (ex. \", \n, \t) ok ?

Soon,
Giuseppe Leone

P.S.
Sorry for my english
AndyCR
Posts: 110
Joined: Tue Nov 08, 2005 2:51 pm
Location: Colorado, USA
Contact:

Re: Irrlicht in Dev C++

Post by AndyCR »

xancithus wrote:I have the newest version of Dev C++ and I got the Irrlicht devpak but it comes up with an error when I try to compile the sample programs

Code: Select all

Line 217 C:\Dev-Cpp\Include\irrlicht\aabbox3d.h unknown escape sequence `\D'
Line 217 C:\Dev-Cpp\Include\irrlicht\aabbox3d.h unknown escape sequence `\I' 
Line 217 C:\Dev-Cpp\Include\irrlicht\aabbox3d.h unknown escape sequence `\i'


The problem does not seem to be code related, since the line numbers for the errors point to blank lines with error-free code before and after them.
(Line 217 is blank and there are no escape sequences near it)

Has anyone come accross this problem and know how to fix it?
Thanks
i believe ive come across this before, it normally means a file has a corrupt character somehow, try deleting the space it points to then re-writing anything you removed. (make sure to write down exactly what was there.)
hybrid

Post by hybrid »

I think Master85 pointed to the correct thing. Compare the error chars \D, \I, and \i with the path of the files: \Dev-Cpp\Include\irrlicht. You find exactly those chars in this path. So somewhere you wrote a backslash without esacping it with another backslash. Or use slashes if appropriate,
xancithus

Post by xancithus »

Yeah I had noticed that... but considering the devpak should install it properly I taught it was somethign else...

I had tried using the normal irrlicht download... but it gave me the same errors..

Where might there be a path that needs to be changed? In the compiler or the code? I'll have a look through the header files later and see if there is anything that needs to be changed

Thanks.
MikeR
Posts: 767
Joined: Sun Dec 26, 2004 4:03 pm
Location: Northern California USA
Contact:

Post by MikeR »

I find the using the "browse button" when linking to libs and folders works great.
Check your code where you are linking to a folder...models, textures, ect...
If it exists in the real world, it can be created in 3d

Sys specs:
AMD 3700+ 64 processor
1.0 gb ram
e-Geforce 6600 graphics 256 mb onboard ram
Osirus
Posts: 11
Joined: Wed Sep 01, 2004 4:27 pm

Post by Osirus »

What file is the compiler saying the error is in?

as Master85 pointed out
For your problem:
Line 217 C:\Dev-Cpp\Include\irrlicht\aabbox3d.h unknown escape sequence `\D'

probabily you've used an incorrect escape sequence. For example, if you want to specify a path you must use this sequence: c:/myDir/myImg/img.jpeg and not c:\mydir... Because the character \ is used to define some "special" code (ex. \", \n, \t) ok ?
Sounds like you have a path with the slashes going the wrong way to me.
xancithus

Post by xancithus »

I looked through the header files, the sample program and my compiler options and stuff and nothing seems to be wrong....

aabbox3d.h is where the error is meant to be... but there is nothing there. there are no paths (as far as I could tell) in any of the header files related to that one or in the sample program... I'm at a loss...
hybrid

Post by hybrid »

Maybe it's the include path you entered into your project settings. It might be a problem with including aabbox3d.h, not a problem inside the file. Try to remove the paths and set them using the file chooser.
Post Reply