I'm trying to compile coral for windows to provide a nice .proj file etc...
I'm currently fighting with one compilation error:
1>coral-git-repo\coral\coral\src\attribute.cpp(51): error C2491:
'coral::Attribute::_disconnectOutputCallback' : definition of dllimport
function not allowed
void(*Attribute::_connectToCallback)(Attribute *self, Attribute *other) = 0;
void(*Attribute::_disconnectInputCallback)(Attribute *self) = 0;
void(*Attribute::_disconnectOutputCallback)(Attribute *self, Attribute
*other) = 0;
void(*Attribute::_deleteItCallback)(Attribute *self) = 0;
void(*Attribute::_specializationCallBack)(Attribute *self) = 0;
void(*Attribute::_valueChangedCallback)(Attribute *self) = 0;
It seems that MSVC compiler can't define a fonction that will be
exported in a dll:
http://msdn.microsoft.com/fr-fr/library/62688esh%28v=vs.80%29.aspx
Same for networkmanager.cpp:
1>coral-git-repo\coral\coral\src\networkmanager.cpp(60): error C2491:
'coral::NetworkManager::_searchPaths' : definition of dllimport function
not allowed
int NetworkManager::_nextAvailableId = 0;
std::map<int, Object *> NetworkManager::_objectsById;
std::vector<std::string> NetworkManager::_searchPaths;
Same for Node.cpp:
void(*Node::_addNodeCallback)(Node *self, Node *node) = 0;
void(*Node::_removeNodeCallback)(Node *self, Node *node) = 0;
void(*Node::_addInputAttributeCallback)(Node *self, Attribute
*attribute) = 0;
void(*Node::_addOutputAttributeCallback)(Node *self, Attribute
*attribute) = 0;
void(*Node::_removeAttributeCallback)(Node *self, Attribute *attribute) = 0;
void(*Node::_deleteItCallback)(Node *self) = 0;
void(*Node::_connectionChangedCallback)(Node *self, Attribute
*attribute) = 0;
Same for Object.cpp:
void(*Object::_addReferenceCallback)(Object*) = 0;
void(*Object::_removeReferenceCallback)(Object*) = 0;
I'm fighting with this for two hours now. if anyone have an idea? :(
I'm using VC10 (MSVC C++ 2010 Express).
Thanks in advance for any help! :)
Regards,
Dorian
PS: There is also thousand of warning, we will talk once this problems
will be solved.
1>coral-git-repo\coral-win32-deps\tbb40_20111003oss\include\tbb\tbb_config.h(214):
fatal error C1017: invalid integer constant expression
http://msdn.microsoft.com/en-us/library/h5sh3k99%28v=vs.71%29.aspx
And there is the part of the code:
#if __GLIBC__==2 && __GLIBC_MINOR__==3 || __MINGW32__ || (__APPLE__ &&
__INTEL_COMPILER==1200 && !TBB_USE_DEBUG)
//! Macro controlling EH usages in TBB tests
/** Some older versions of glibc crash when exception handling
happens concurrently. **/
#define __TBB_THROW_ACROSS_MODULE_BOUNDARY_BROKEN 1
#endif
Don't know why I have this error here and not in the coral(simple)
project...
Any idea? :(
Thanks in advance all!
@Keir
You never had this error during your windows compilation process? :(
Regards,
Dorian
Le 09/12/2011 23:38, Dorian FEVRIER a �crit :
And another error before sleep. I'm trying to do the coralUi project too:
1>coral-git-repo\coral-win32-deps\tbb40_20111003oss\include\tbb\tbb_config.h(214):
fatal error C1017: invalid integer constant expression
http://msdn.microsoft.com/en-us/library/h5sh3k99%28v=vs.71%29.aspx
And there is the part of the code:
#if __GLIBC__==2 && __GLIBC_MINOR__==3 || __MINGW32__ || (__APPLE__ &&
__INTEL_COMPILER==1200 && !TBB_USE_DEBUG)
//! Macro controlling EH usages in TBB tests
/** Some older versions of glibc crash when exception handling
happens concurrently. **/
#define __TBB_THROW_ACROSS_MODULE_BOUNDARY_BROKEN 1
#endif
Don't know why I have this error here and not in the coral(simple)
project...
Any idea? :(
Thanks in advance all!
@Keir
You never had this error during your windows compilation process? :(
Regards,
Dorian
And another error before sleep. I'm trying to do the coralUi project too:1>coral-git-repo\coral-win32-deps\tbb40_20111003oss\include\tbb\tbb_config.h(214):
fatal error C1017: invalid integer constant expressionhttp://msdn.microsoft.com/en-us/library/h5sh3k99%28v=vs.71%29.aspx
And there is the part of the code:
#if __GLIBC__==2 && __GLIBC_MINOR__==3 || __MINGW32__ || (__APPLE__ &&
__INTEL_COMPILER==1200 && !TBB_USE_DEBUG)
//! Macro controlling EH usages in TBB tests
/** Some older versions of glibc crash when exception handling
happens concurrently. **/
#define __TBB_THROW_ACROSS_MODULE_BOUNDARY_BROKEN 1
#endifDon't know why I have this error here and not in the coral(simple)
project...Any idea? :(
Thanks in advance all!
@Keir
You never had this error during your windows compilation process? :(Regards,
Dorian
Le 09/12/2011 23:38, Dorian FEVRIER a �crit :
And another error before sleep. I'm trying to do the coralUi project too:
1>coral-git-repo\coral-win32- deps\tbb40_20111003oss\ include\tbb\tbb_config.h(214):
fatal error C1017: invalid integer constant expression
And there is the part of the code:
#if __GLIBC__==2 && __GLIBC_MINOR__==3 || __MINGW32__ || (__APPLE__ &&
__INTEL_COMPILER==1200 && !TBB_USE_DEBUG)
//! Macro controlling EH usages in TBB tests
/** Some older versions of glibc crash when exception handling
happens concurrently. **/
#define __TBB_THROW_ACROSS_MODULE_ BOUNDARY_BROKEN 1
#endif
Don't know why I have this error here and not in the coral(simple)
project...Any idea? :(Thanks in advance all!@Keir
You never had this error during your windows compilation process? :(Regards,Dorian
Le 09/12/2011 23:38, Dorian FEVRIER a �crit :
> Hi all!
>
> I'm trying to compile coral for windows to provide a nice .proj file etc...
>
> I'm currently fighting with one compilation error:
>
> 1>coral-git-repo\coral\coral\ src\attribute.cpp(51): error C2491:
> 'coral::Attribute::_ disconnectOutputCallback' : definition of dllimport
> function not allowed
>
> void(*Attribute::_ connectToCallback)(Attribute *self, Attribute *other) = 0;
> void(*Attribute::_ disconnectInputCallback)( Attribute *self) = 0;
> void(*Attribute::_ disconnectOutputCallback)( Attribute *self, Attribute
> *other) = 0;
> void(*Attribute::_ deleteItCallback)(Attribute *self) = 0;
> void(*Attribute::_ specializationCallBack)( Attribute *self) = 0;
> void(*Attribute::_ valueChangedCallback)( Attribute *self) = 0;
>
> It seems that MSVC compiler can't define a fonction that will be
> exported in a dll:
> http://msdn.microsoft.com/fr- fr/library/62688esh%28v=vs.80% 29.aspx
>
> Same for networkmanager.cpp:
>
> 1>coral-git-repo\coral\coral\ src\networkmanager.cpp(60): error C2491:
> 'coral::NetworkManager::_ searchPaths' : definition of dllimport function
> not allowed
>
> int NetworkManager::_ nextAvailableId = 0;
> std::map<int, Object *> NetworkManager::_objectsById;
> std::vector<std::string> NetworkManager::_searchPaths;
>
> Same for Node.cpp:
>
> void(*Node::_addNodeCallback)( Node *self, Node *node) = 0;
> void(*Node::_ removeNodeCallback)(Node *self, Node *node) = 0;
> void(*Node::_ addInputAttributeCallback)( Node *self, Attribute
> *attribute) = 0;
> void(*Node::_ addOutputAttributeCallback)( Node *self, Attribute
> *attribute) = 0;
> void(*Node::_ removeAttributeCallback)(Node *self, Attribute *attribute) = 0;
> void(*Node::_deleteItCallback) (Node *self) = 0;
> void(*Node::_ connectionChangedCallback)( Node *self, Attribute
> *attribute) = 0;
>
> Same for Object.cpp:
>
> void(*Object::_ addReferenceCallback)(Object*) = 0;
> void(*Object::_ removeReferenceCallback)( Object*) = 0;