Compilation probleme with 0.4.2

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
tetus

Compilation probleme with 0.4.2

Post by tetus »

Hello,

I have a small problem with the librairie 0.4.2 she doesn't compile

she make this error :
564 C:\Dev-Cpp\irrlicht-0.42\source\CAnimatedMeshMD2.cpp
`struct irr::scene::CAnimatedMeshMD2::SFrameData' has


please help

thank you.

TETUS
Guest

Post by Guest »

`struct irr::scene::CAnimatedMeshMD2::SFrameData' has
my arm is gettin weak ... :P

has what? :)
TETUS

probleme

Post by TETUS »

I don't know it's not write


but a give you the code who make the probleme :

if (frame->name[0])
{
for (s32 s = 0; frame->name[s]!=0 && (frame->name[s] < '0' ||
frame->name[s] > '9'); ++s)
fdata.name += fdata.nameframe->name[s]; // here the problem

if (!FrameData.empty() && FrameData[FrameData.size()-1].name == fdata.name)
++FrameData[FrameData.size()-1].end;
else
FrameData.push_back(fdata);
}
Guest

Post by Guest »

1. I don't believe when you it doesn't print the reason :)
2. I'm not a great specialist in Dev-Cpp but according to your first post the actual error is HERE: line 564 :) This line is (according to my VC editor :)

Code: Select all

fdata.name += frame->name[s];
well fdata.name is a string of type core::string<c8> and frame->name[s] is a character of type c8. According to my sources of v 0.4.2 there is operator

Code: Select all

void operator += (T c)
defined in core::string template class. So there should be no problems...

Would it help you to rebuild entire project? (It helps often).

If you tell me the actual reason of the error I will probably tell you something else. Sorry for now.
Guest

Post by Guest »

I don't beleive in it but you can try to change "bad" line with the following:

Code: Select all

fdata.name = fdata.name + frame->name[s];
but this will make your code slower anyway...
TETUS

again ...

Post by TETUS »

this change doesn't work I try after ask help me


:wink:
TETUS

eh...

Post by TETUS »

... somebody have the great source for give me the options to the project options...

very thx
Pierrot

same problem

Post by Pierrot »

hello !!! and first very good job for your engin ;)

I have a same probleme like TETUS but when a change :

fdata.name += frame->name[s];

in

fdata.name[s] += frame->name[s];

it's have a news :

161 C:\irrlicht-0.4.2\source\CAnimatedMeshSceneNode.cpp
`ETS_WORLD' undeclared in namespace `irr::video

274 C:\irrlicht-0.4.2\source\CAnimatedMeshSceneNode.cpp
`EVDF_STENCIL_BUFFER' undeclared in namespace `


And I known some attribut name's change but ???? please help us


thx
Post Reply