I want to compile a program with a supplied preprocessor definition:
qcc -DLUA_USERCONFIG=“whatever.h”
and in the program source: #include LUA_USERCONFIG
but for some reason the preprocessor throws away the quotes ("). I’ve tried other escape characters as well:
‘“whatever.h”’ and &‘whatever’
but none of these work.
I’m using QNX 6.3.0, and I’m compiling using the IDE. So to achieve the above, I open the project properties dialog, and under the ‘Compiler’ tab, in the ‘Definitions’ field, i add the line
LUA_USERCONFIG=“whatever.h”
or in the ‘Other options’ field
-DLUA_USERCONFIG=“whatever.h”
Does QNX qcc use other escape characters for this? How do I define a string enclosed by quotes from the command line?
Thanks, but thats not what I’m trying to do. I don’t want to modify the source code at all. I just want to define something with quotes included as part of the definition. Gcc is supposed to support something like -DCONFIG=“stuff” but sometimes the escape character () differs. I just don’t know what it should be for QNX qcc.