User forums > General (but related to Code::Blocks)

Global Variables and stuff

(1/1)

jmccay:
   First, I got Version 1.0 revision 1562 (gcc 3.4.4 Windows/ANSI, build: Dec 19 2005 10:02:12) up, running, and compiling using global variables.  I must say.  Global variables rock!  I love them already.  I have a question about the gcc variable.  I am using the version of MingW shipped with RC 2.  What woudl I do for the includ & lib directories.

Is there a quicker way to convert older projects to use global variables?

Thank you.  Keep up the great work.  CB keeps getting better every day.
jmccay

280Z28:

--- Quote from: jmccay on December 20, 2005, 02:34:10 am ---   First, I got Version 1.0 revision 1562 (gcc 3.4.4 Windows/ANSI, build: Dec 19 2005 10:02:12) up, running, and compiling using global variables.  I must say.  Global variables rock!  I love them already.  I have a question about the gcc variable.  I am using the version of MingW shipped with RC 2.  What woudl I do for the includ & lib directories.
--- End quote ---

I think I remember them being (I use standalone MinGW so it's different for me now):
C:\Program Files\CodeBlocks\include
C:\Program Files\CodeBlocks\lib


--- Quote from: jmccay on December 20, 2005, 02:34:10 am ---Thank you.  Keep up the great work.  CB keeps getting better every day.
jmccay

--- End quote ---

It's not too often you can say that and mean it so literally, huh?  :lol:

thomas:
You want to set $(#gcc) to the Code::Blocks directory in this case, as this is the root dir for MinGW at the same time and contains the directories lib and include.

Note that you can set $(#gcc.include) and $(#gcc.lib), but these default to $(#gcc)/include and $(#gcc)/lib, which is usually good. Most people, although they can, do not need to set these.

jmccay:
Thanks a lot for the help.  C::B does seem to get better every day.  Keep up the great work.
jmccay

Navigation

[0] Message Index

Go to full version