Type (struct) declared in Extern issue

BlitzMax Forums/BlitzMax Programming/Type (struct) declared in Extern issue

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

If I declare a 'type' that is in effect a struct, I get an error "expecting field or method declaration but encountered '['"

Import "-lTestDLL"

Extern "C"
	Type TGUID2
	    Field	Data1 : Int
	    Field	Data2 : Short
	    Field	Data3 : Short
	    Field	Data4 : Byte[8]
	End Type
End Extern


Can't we declare arrays in an external struct?