sybixsus
February 21st, 2006, 10:23 AM
Hi,
I'm trying to use a dll which is supposed to work with practically any C++ compiler ( according to the author. ) The header files supplied seem to be set up for MS VC++ though. There are a number of errors, so I'll begin with the first one.
There's a struct definition that's causing an error to start with. I've trimmed it right down to make it easier to see the problem.
typedef struct MY_VECTOR
{
float x;
float y;
float MY_VECTOR::Dot(CONST MY_VECTOR& v)
{
return x*v.x + y*v.y;
}
} MY_VECTOR;
The error I get is that the compiler is expecting a ; after Dot and before ( in the declaration.
I'm really not sure what the problem is here. It looks fine to me, with my very limited C++ skills.
I'm trying to use a dll which is supposed to work with practically any C++ compiler ( according to the author. ) The header files supplied seem to be set up for MS VC++ though. There are a number of errors, so I'll begin with the first one.
There's a struct definition that's causing an error to start with. I've trimmed it right down to make it easier to see the problem.
typedef struct MY_VECTOR
{
float x;
float y;
float MY_VECTOR::Dot(CONST MY_VECTOR& v)
{
return x*v.x + y*v.y;
}
} MY_VECTOR;
The error I get is that the compiler is expecting a ; after Dot and before ( in the declaration.
I'm really not sure what the problem is here. It looks fine to me, with my very limited C++ skills.