c++ - Is it possible to have different .DEF files per build configuration? -


i have project compiles dll. using .def file manage exported functions. instance:

exports     myfoo1     myfoo2     myfoo3     myfoo4 

is possible have different .def files in debug , release configurations? have larger set of functions in debug mode in release.

for example, have in release mode myfoo1.

currently thought using __declspec instead of .def file, , use macro enable them when macro on. macro in turn, can put pre-processor definitions, dependent on build configuration.

is possible accomplish goal without switching .def files __declspec mechanism?

you can set different def file every build configuration : project properties -> linker -> input -> module definiton file

this sets /def option


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -