RenderKit / rkcommon

Intel RenderKit common C++/CMake infrastructure
Apache License 2.0
17 stars 10 forks source link

Problem when mixing release build of rkcommon with debug build of ospray on Windows #4

Closed ghost closed 3 years ago

ghost commented 3 years ago

I'm developing an OSPRay based project. There are some issues with the OSPRay library so that I have to compile it in debug build on Windows, but I don't want to recompile every dependencies. Then, the OSPRay library has some problems during initialization, due to rkcommon's exported functions, where the std::string class is used as the APIs' parameters. This causes problems since the string class cannot be used in a mixed way across DLL boundaries. Could you please redesign the library to use char * only?

johguenther commented 3 years ago

rkcommon is inherently a C++ library, redesigning it to be C99 only won't be possible: it is not just std::string, rkcommon::ParameterizedObject is the base of all OSPRay objects, using advanced C++ features.

Some alternatives to ease development: