Can't get header snippet to compile in a mod

BlitzMax Forums/BlitzMax Programming/Can't get header snippet to compile in a mod

Gabriel(Posted 2006) [#1]
I'm trying to create a module which has a lot of c++ header files and a lib.

I'm finding errors with some of the headers. I think they're MSVC++ headers really, so there may be some GCC conversion required.

Here's an example :

typedef struct MY_VECTOR
{
	float x;
        float y;

	float MY_VECTOR::Dot(CONST MY_VECTOR& v)
	{
		return x*v.x + y*v.y;
	}


The error comes right between Dot and ( and is expecting a ; between them.

I'm guessing that GCC doesn't like the NameSpace ( or whatever the hell this is in this context ) in a method declaration. But it might be something else in this declaration. Any ideas?