Ok, I've got this macro in main:
And my CXX flags in my Makefile are as follows:Code:#ifdef LINUXOS #define PLOT_TYPE_1 "gnuplot gnuplotscript.txt" #define PLOT_TYPE_2 "gnuplot gnuplotscriptfinal.txt" #else #define PLOT_TYPE_1 "wgnuplot.exe gnuplotscript.txt" #define PLOT_TYPE_2 "wgnuplot.exe gnuplotscriptfinal.txt" #endif
But when I compile with the above flags (in Linux obviously) the lines are being replaced with the windows stuff (the lines with wgnuplot.exe).Code:CXXFLAGS := -DLINUXOS -Wall -Wextra -pedantic
What am I doing wrong?