User forums > Help

set path enviroment variable?

(1/2) > >>

code2d:
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

stahta01:

--- Quote from: 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

--- End quote ---

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

code2d:
Thanks I will try that and see. (:

MortenMacFly:
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.

Deschamps:

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 :)

Navigation

[0] Message Index

[#] Next page

Go to full version