User forums > Using Code::Blocks

SConstruct (Scons)

<< < (3/6) > >>

Mad Scientist:
Ok from what I have seen I am going to guess you are using code blocks as your IDE and the msvc++ compiler that is shipped with your version of msvc++, as long as you only have one compiler installed though it wont make much difference.
I doubt it is different in terms of 16 bit or 32 bit as long as you are using the same compiler( scons will default to msvc unless told other wise or if it is not installed ) and havnt defined 16 bit. So I did notice though that you didn't define any build flags with scons except for some extra defines and that could be what is adding to the size as code blocks has some default flags set unless you change them. Example line( add after your first append ):
--- Code: ---st.Append( CCFLAGS = '-Ox' )
--- End code ---

johne53:
Thanks for the info. Actually, this is a Linux project and I'm using gcc compiler. Strictly speaking I think I should be using g++ compiler but C::B doesn't offer that as an option. If I specify gcc, will C::B use g++ compiler where appropriate? If not, that could be another reason for the differences.

killerbot:
gcc will use g++ where appropriate I think

johne53:
I've had a good look at C::B but I can't see anything obvious for changing the target between 16 bit and 32 bit. I'm assuming that gcc defaults to 32 bit but it would be nice to know if there are any compiler flags for selecting between 16 bit, 32 bit or even 64 bit compilation.

Auria:

--- Quote from: johne53 on July 28, 2007, 06:41:37 pm ---Strictly speaking I think I should be using g++ compiler but C::B doesn't offer that as an option. If I specify gcc, will C::B use g++ compiler where appropriate? If not, that could be another reason for the differences.

--- End quote ---

AFAIK the trick is more or less that GCC can have 2 meanings:

Gnu Compiler Collection
Gnu C Compiler

In the compiler dialog, GCC means the former, when you build a C program from terminal, GCC means the latter ;)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version