Windows compilation report

100 views
Skip to first unread message

Dorian FEVRIER

unread,
Dec 9, 2011, 5:38:13 PM12/9/11
to cora...@googlegroups.com
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;

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.

Dorian FEVRIER

unread,
Dec 9, 2011, 6:24:18 PM12/9/11
to cora...@googlegroups.com
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

Le 09/12/2011 23:38, Dorian FEVRIER a �crit :

Keir Rice

unread,
Dec 10, 2011, 4:27:50 AM12/10/11
to cora...@googlegroups.com
Hi Dorian,

I didn't run into any of the issues you we describing above, but I was using the Scons builder (baked onto VS2010).

The main reason I had wanted to compile is visual studio was so I could use it to debug the running process. But I found the right flags/settings to get the Scons builder to output the PDB files.

So in the end I decided not to make a visual studio project because I didn't want to have to recreate (and maintain) all of the build settings in VS when the Scons builder is already up and running.


Keir


On Sat, Dec 10, 2011 at 12:24 PM, Dorian FEVRIER <fevrier...@yahoo.fr> wrote:
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

Andrea Interguglielmi

unread,
Dec 10, 2011, 5:23:24 AM12/10/11
to cora...@googlegroups.com
To support alternative build systems (make, cmake, VS, XCode) we should split up the scons build process from the build-setup step performed at the end (when the py and lib files are copied onto the build folders).

But flexibility adds complexity, and we'll end up with more scripts and more instructions for the users wishing to mix up the build systems.
Something I'd rather not tackle at this stage, dunno if you guys agree.

Keir Rice

unread,
Dec 10, 2011, 6:17:20 AM12/10/11
to cora...@googlegroups.com
I agree ^_^

Dorian Fevrier

unread,
Dec 11, 2011, 6:49:16 AM12/11/11
to cora...@googlegroups.com
Ok! You used scon "baked in VS2010" to make it compile!

I think your right! A MSVC project is a pain to maintain. If there is a way to compile using MSVC compiler, we should use it.


> But I found the right flags/settings to get the Scons builder to output the PDB files.

I'm very interested in how you used scon to compile with MSVC compiler (cl). :)

Could you give more information on this? (Or maybe even the files and a description to help to compile on Win32?).

Thanks in advance!

Regard,

Dorian

Constantine Tarasenkov

unread,
Aug 12, 2012, 1:36:05 PM8/12/12
to cora...@googlegroups.com
Now I have this error. Are you solved it, 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 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 :

Dorian FEVRIER

unread,
Aug 12, 2012, 4:35:31 PM8/12/12
to cora...@googlegroups.com
No, sorry... Never had problem with that... :(


De : Constantine Tarasenkov <iam...@gmail.com>
À : cora...@googlegroups.com
Envoyé le : Dimanche 12 août 2012 19h36
Objet : Re: [coral-app] Windows compilation report

Now I have this error. Are you solved it, 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 expression
#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;
Reply all
Reply to author
Forward
0 new messages