How is it possible to make project in Eclipse CDT to target both static library and shared library?
Eclipse CDT, build both static lib and shared lib
buildeclipse-cdtshared-librariesstatic-libraries
Related Topic
- Eclipse – Work on a remote project with Eclipse via SSH
- C++ – link static lib in eclipse cdt
- How to use clang/llvm with Eclipse CDT
- Eclipse – Changing Project Type from “Executable” to “Static Library” in Eclipse CDT
- C++ – How to enable C++11/C++0x support in Eclipse CDT
- C++ – Can’t add static library in Eclipse Juno 8.1.1 CDT C++ project
- Json – getting csrf tokens for json post requests to a rails app
Best Answer
(assuming you initially created a shared library project)
Create a new build configuration for static library (as you do for Debug/Release).
Build your configurations (e.g. Release, Debug, Static)
Release and Debug config should create your shared library
Static should create your static library