I have the following code:
gcc test.c -o test -D ARGUMENT 2
and I want it to define ARGUMENT with a value of 2 but it says cannot find file 2 or something. How do I do this?
I have the following code:
gcc test.c -o test -D ARGUMENT 2
and I want it to define ARGUMENT with a value of 2 but it says cannot find file 2 or something. How do I do this?
You can also use gcc test.c -o test -DARGUMENT
.
ARGUMENT will be defined with no value but it is still possible to check it using #ifdef
and friends.