News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

C++ compiler: defining project option

Started by erotavlas, January 07, 2011, 11:34:20 AM

Previous topic - Next topic

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

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

erotavlas

Hi,

thank you for your fast answer and for the links. This is my full command line...
g++-3.exe -Wall -g -fexceptions -DWIN=0  -g    -I"C:/Codes"  -c "C:/Codes/main.c" -o obj/Debug/Codes/main.o

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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]