Hi,

I've got a Windows-specific issue trying to build my code, and I'm not sure
how to address this.  Visual Studio 2013 fails to compile the code with  the
following error message: 

 

error C2491:
'hpx::traits::component_type_database<fx::core::Parameter_Group_Server,void>
::get' : definition of dllimport function not allowed

 

Visual Studio shows the line of code containing the error as the invocation
of macro HPX_REGISTER_COMPONENT.

 

The error is obviously not present on my Linux box (using clang and Intel
icpc compilers).

 

It has been my intention to use VS for development (the code is intended
ultimately to run on Linux / Intel Phi).  As such, I have gotten the code to
apparently compile successfully by putting the macro call within #ifndef
_MSC_VER #end.  I suspect that this will work to allow me to continue
development, but it also definitely means that I cannot run unit tests for
any hpx component type on Windows, which means that I need to find a
solution to this rather than relying on this workaround.

 

Any suggestions would be greatly appreciated.  

 

Thanks,

Shmuel

_______________________________________________
hpx-users mailing list
[email protected]
https://mail.cct.lsu.edu/mailman/listinfo/hpx-users

Reply via email to