logo
Published on Haiku Project (http://www.haiku-os.org)

Problem to convert my application

By greg2
Created 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 ?

‹ PPC Port [0] Any non-GPL compilers? › [0]

Source URL:
http://www.haiku-os.org/community/forum/problem_to_convert_my_application