There is any preprocessor trick or something in which you can compile both, a lib and dll version, at the same time of a set of functions?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m not certain of the details on how to do this in Visual Studio, but basically you’ll just have to set up two build products that build from the same source code, but with different build settings, such as a macro that enables/disables the
declspec()attributes used in dlls.I think in Visual Studio this might manifest as having two projects in your solution.