I have a Cmake project with 3 DLLs; 1 based on pure Fortran, 2 based on pure
C. I now have some C++ I want to add to one of the C-based DLLs.

Adding to CMakeLists.txt works fine when the target solution is Visual
Studio 2010, but I'm not having any luck with MinGW.

MinGW builds create OBJ files for C and C++, but the output DLL is missing
the C++ component.

C and C++ use 'extern __declspec(dllexport)'  and 'extern "C"
__declspec(dllexport)' respectively.

Any advice would be welcome on what I am doing wrong, or whether I need to
put the C++ in another DLL

 

Thanks for an amazing tool, Don

 

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to