Problem to convert my application

Forum thread started by greg2 on Mon, 2007-10-01 19:21

Hi,

I want to convert one of my application to haiku. Because Haiku is not available, i use BeOs DevEd with BeIDE. But i have a problem when i compile it:

Quote:

Error : anonymous class type not used to declare any objects
AN8X.h line 143 };

This is a part of my code:

Quote:

class AN8XVECTOR4{
public:
union {
struct {
float x,y,z,w;
};
struct
{
float s,t,r,q;
};
};

AN8XVECTOR4()
{
x=0.0f;y=0.0f;z=0.0f;w=0.0f;
};
AN8XVECTOR4( float x , float y , float z, float w )
{
this->x = x; this->y = y; this->z = z;this->w = w;
}
};

I am not an expert in C++ but it should work ? It work very well under Linux and under Windows (Visual 2005 and DevCpp).

I have also some error with std::vector

Quote:

Error : template instantiation depth exceeds maximum of 17 stl_vector.h line 509 if(__xlen > capacity()) {
Error : (use -ftemplate-depth-NN to increase the maximum) stl_vector.h line 509 if (__xlen > capacity()) {
Error: invalid use of undefined type 'struct iterator_traits stl_iterator.h line 154 {

And many other warning ("instantiated from...") and some other error with std::vector

Is there a problem with the BeOS compiler ?

Comments

Re: Problem to convert my application

I'm not a developer and most of the hard core devs don't hang out a lot on the Forums. You might want to sign up to the dev mailing list, here, and post a message. You will probably get a better response.