> Ive got a Windows-specific issue trying to build my code, and Im 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,voi > d>::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.
Blending out that macro for VS is not a solution. Could you please give us more information on how you build your code? Do you use cmake to generate the VS solution for it? The cause of this is most likely a missing macro which will have to be defined on the compiler command line. Regards Hartmut --------------- http://boost-spirit.com http://stellar.cct.lsu.edu _______________________________________________ hpx-users mailing list [email protected] https://mail.cct.lsu.edu/mailman/listinfo/hpx-users
