In CodeBlocks C++ project, settings, compiler, #define, I added these options:
_DEBUG
DATA_DIR=\"/media/Shared/SiX/Data\"
This produces the following command line:
g++ -Wall -g -fPIC -save-temps -D_DEBUG -DDATA_DIR=\"/media/Shared/SiX/Data\" -I../Includes -c /media/Shared/SiX/SiXConfiguration/PathManager.cpp -o obj/Debug/PathManager.o
When I open precompiler output, I see that source code line with DATA_DIR constant is expanded incorrectly. Source line:
commonDataDir = DATA_DIR;
is expanded as:
commonDataDir = /media/Shared/SiX/Data;
Should be:
commonDataDir = "/media/Shared/SiX/Data";
The same settings in the Eclipse CDT produce correct result. How can I fix this?