我的文件 A.cpp 在源文件中有 targetlibs=Lib.lib 。Lib.cpp 是用 C_defines=-DSomething 编译的,但 A.cpp 是用 C_defines=-DOther 编译的。Lib.pp 包含 -DSomething 和 -DOther 的 #ifdefs。
在这种情况下会发生什么?-DSomething 是由 -DOther 保留还是替换?-Dother 是否被忽略?还是两者都保留?谢谢
我的文件 A.cpp 在源文件中有 targetlibs=Lib.lib 。Lib.cpp 是用 C_defines=-DSomething 编译的,但 A.cpp 是用 C_defines=-DOther 编译的。Lib.pp 包含 -DSomething 和 -DOther 的 #ifdefs。
在这种情况下会发生什么?-DSomething 是由 -DOther 保留还是替换?-Dother 是否被忽略?还是两者都保留?谢谢