Author Topic: set path enviroment variable?  (Read 26155 times)

code2d

  • Guest
set path enviroment variable?
« 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

Online stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: set path enviroment variable?
« Reply #1 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
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

code2d

  • Guest
Re: set path enviroment variable?
« Reply #2 on: May 19, 2007, 09:16:43 pm »
Thanks I will try that and see. (:

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: set path enviroment variable?
« Reply #3 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Deschamps

  • Multiple posting newcomer
  • *
  • Posts: 120
Re: set path enviroment variable?
« Reply #4 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 :)
Those who were seen dancing were thought to be insane by those who could not hear the music

code2d

  • Guest
Re: set path enviroment variable?
« Reply #5 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. (: