indigo3d / coral-repo

Automatically exported from code.google.com/p/coral-repo
0 stars 0 forks source link

CORAL_EXPORT definition causing issues on Windows #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In "Attribute.cpp," all the "UI\external observers stuff" that are defined as 0 
gets rejected by MSVC compiler claiming that "definition of a static member not 
allowed," or something like that...

Original issue reported on code.google.com by notanymike on 3 Oct 2011 at 2:00

GoogleCodeExporter commented 8 years ago
Hi!

Could you paste the whole MSVC error? :)

Maybe you have to write static before each declaration.

static void(*Attribute::_connectToCallback)(Attribute *self, Attribute *other) 
= 0;
static void(*Attribute::_disconnectInputCallback)(Attribute *self) = 0;
static void(*Attribute::_disconnectOutputCallback)(Attribute *self, Attribute 
*other) = 0;
static void(*Attribute::_deleteItCallback)(Attribute *self) = 0;
static void(*Attribute::_specializationCallBack)(Attribute *self) = 0;
static void(*Attribute::_valueChangedCallback)(Attribute *self) = 0;

Try that. Anyway, post the whole error message, this will be more clear. :)

Make a feedback if you find the solution. :)

Original comment by dorian.f...@gmail.com on 12 Oct 2011 at 7:48

GoogleCodeExporter commented 8 years ago

Original comment by aintergu...@gmail.com on 3 Jan 2012 at 11:07