Page 1 of 1

Tech. problem : build with BCB 6 (under WindowsXP)

PostPosted: Thu Aug 14, 2008 8:50 am
by NicoFromBelgium
Hi everybody!

Firstly : I want to congratulate the project and all people who contribute, it's a really good job.

I'm trying to build the project under WinXP, BCB6.

I've the last source code (ver. 9.1)
I fixed a lot of little problem (path, include not recognised, png and zlib dependencies,...)

I've now a problem with animation.cpp

Line 94 : (first line in function void Animation::interpolate(BodySettings &prev, BodySettings &next) )

BodySettings interPoses[interpNumber]; //the error message is : Constant expression required

Any idea to fix it?

Re: Tech. problem : build with BCB 6 (under WindowsXP)

PostPosted: Mon Aug 25, 2008 6:50 am
by NicoFromBelgium
Bug corrected, but not as clean as i want ( i changed "interpNumber" to 1000 )

Other problem : in "utils.cpp" line 337 : Cannot convert 'char*' to 'RIB_PARAM_STRING'

RIB_PARAM_STRING editParametersString[LAST_PARAM_STRING]=
{
{"rendpath","${RENDERING_PATH}",parametersString_def[RENDPATH_PARAM_STRING]},
{...},
...
}

I try some things, but nothing work...

Edit : I find the problem...

#define struct my_struct{char* a;char* b;String c;} My_Struct;
My_Struct test[3]={{"123","abc","xyz"},{"456","abc","xyz"},{"789","abc","xyz"}};

it don't work because "123" is interpreted like a My_Struct, and not a char*. I try to initialise this in a function, member by member, it work, but I can't do that because i don't know when the array is use the first time (maybe before my function call).

I find other case like this (in mesh.cpp).

I'm looking after a solution. If someone find before me... :-)