User forums > Using Code::Blocks

C++ compiler: defining project option

(1/1)

erotavlas:
Hi all,

I'm under window 7 x64, Code::block 10.05 and cygwin 1.7.7.1 and I have to set a directive (#define WIN = 1) for conditional compiling. I have tried in project->properties-> project's build option->#define where I have specified WIN = 1, but it seems to have no effect.
Where should I go to set the directive?

Thank you

oBFusCATed:
Read this: http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F

Probably you should use "WIN=1" not "WIN = 1", but this is just a guess...

erotavlas:
Hi,

thank you for your fast answer and for the links. This is my full command line...

--- Code: ---g++-3.exe -Wall -g -fexceptions -DWIN=0  -g    -I"C:/Codes"  -c "C:/Codes/main.c" -o obj/Debug/Codes/main.o
--- End code ---

If I try to change from WIN = 0 to WIN = 1 there are no differences. Can you help me?

oBFusCATed:
You're not changing the correct place.
Please describe the steps you're using.

Navigation

[0] Message Index

Go to full version