Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: jmccay on December 20, 2005, 02:34:10 am

Title: Global Variables and stuff
Post by: 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.

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
Title: Re: Global Variables and stuff
Post by: 280Z28 on December 20, 2005, 02:44:03 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.

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

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

It's not too often you can say that and mean it so literally, huh?  :lol:
Title: Re: Global Variables and stuff
Post by: thomas on December 20, 2005, 11:28:44 am
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.
Title: Re: Global Variables and stuff
Post by: jmccay on December 21, 2005, 03:14:37 am
Thanks a lot for the help.  C::B does seem to get better every day.  Keep up the great work.
jmccay