Code::Blocks Forums

User forums => Help => Topic started by: code2d on May 19, 2007, 06:06:11 pm

Title: set path enviroment variable?
Post by: code2d on May 19, 2007, 06:06:11 pm
A few months back someone told me that if I set a PATH environment variable that you will NOT have to copy the main wxwidgets dll and the mingw32 file to each folder that has the exe. Were would I set the path environment in Code Blocks???

-Thanks
Title: Re: set path enviroment variable?
Post by: stahta01 on May 19, 2007, 06:16:09 pm
A few months back someone told me that if I set a PATH environment variable that you will NOT have to copy the main wxwidgets dll and the mingw32 file to each folder that has the exe. Were would I set the path environment in Code Blocks???

-Thanks

I suggest using windows to set the PATH environment variable.

Under windows XP Directions follow.

Right click on "My Computer"
Select "Properties"
Select "Advanced" Tab
Click on "environment variables"
Find "PATH" in top window "User variables for [USERNAME]"
Select "Path"
Click on "Edit"
Go to end of "Variable Value"
Add semicolon and folder path to be added, example on next line.
;C:\wxWindows\Lib\gcc_dll
Click on "OK"
Click on "OK"
Click on "OK"


Tim S
Title: Re: set path enviroment variable?
Post by: code2d on May 19, 2007, 09:16:43 pm
Thanks I will try that and see. (:
Title: Re: set path enviroment variable?
Post by: MortenMacFly on May 20, 2007, 09:42:00 am
You could also use the envvars plugin (Settings -> Environment -> Environment variables).
BUT: This may overwrite an already existing PATH variable. So the pro is: You can fully control what PATH is setup but you have to be careful not to forget some already existing PATH setup.
BTW: This change would only apply to the focus of C::B then, whereas the change as described by stahta01 is system wide (at least logon-wide)... depends on what you want.
With regards, Morten.
Title: Re: set path enviroment variable?
Post by: Deschamps on May 23, 2007, 02:57:22 am

Another easy way to do this is simply copying those files (wxWidgets and MinGW dll's) inside a folder already in the scope of the PATH. For instance, C:\Windows\System32

But you need to remember that these files are there, and delete them when you don't need them anymore :)
Title: Re: set path enviroment variable?
Post by: code2d on May 24, 2007, 03:52:19 am
well I believe I will have to go through all the ways suggested to see which one works best more me. Thanks for the great help Deschamps, MortenMacFly, and stahta01. (: