|
-
February 21st, 2006, 11:23 AM
#1
Converting Header from VC++ to MinGW
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.
Code:
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|