Category : preprocessor-directive

I have a project "First" with first.cpp #include<iostream> #include "second.h" using namespace std; int main() { #ifdef MY_MACRO1 cout << "MY_MACRO1 in first" << endl; #endif second(); return 0; } and a static library "Second" with second.cpp #include <iostream> #include "second.h" using namespace std; int second() { #ifdef MY_MACRO1 cout << "MY_MACRO1 in second" << ..

Read more