I have a Visual Studio C++ project, it uses a bunch of libraries, including boost, so nvcc can’t compile it.
Now I want to integrate several CUDA functions into it, but I’m not sure what the best way is.
I thought I would compile the CUDA project as a static library and then include it in the C++ project, but I get tons of warnings from the linker about redefined functions, like:
Warning 101 warning LNK4006: __lock already defined in MSVCRT.lib(MSVCR90.dll); second definition ignored LIBCMT.lib
This results in this warning:
Warning 120 warning LNK4088: image being generated due to /FORCE option; image may not run C:\..\...exe 1
Like it says, it doesn’t run.
Does anyone have exoerience with that kind of a setup?