![]() |
| | #1 |
| Registered User Join Date: Sep 2006
Posts: 11
| Cygwin & MinGW In the PATH variable , Cygwin has the higher priority. But sometimes I want to invoke the MinGW GCC from the command line withoug CD-ing to it's installation directory Any suggestion ? |
| TmX is offline | |
| | #2 |
| erstwhile Join Date: Jan 2002
Posts: 2,223
| Change the path environment variable for that process i.e., Code: set path=mingw_path;%path%
__________________ CProgramming FAQ Caution: this person may be a carrier of the misinformation virus. |
| Ken Fitlike is offline | |
| | #3 |
| Reverse Engineer Join Date: Aug 2005 Location: Estonia
Posts: 2,258
| I have my own "command" directory, where I put programs I want to run throguh command line. So there will be only my bat files and some console executables. You can make a bat file called "cyg.bat": Code: SET PATH=cygwin_path;%path% Code: SET PATH=mingw_path;%path%
__________________ The duck is irrelevant to my point. |
| maxorator is offline | |
| | #4 |
| Registered User Join Date: Dec 2002
Posts: 546
| Of course he could just have the batch file pass on the compiling as well: Code: SET OLDPATH=%path% SET PATH=mingw_path;%path% g++ %1 %2 %3 %4 %5 %6 %7 %8 %9 SET PATH=OLDPATH |
| Frobozz is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Setting SciTE to work with cygwin | Witchfinder | C Programming | 1 | 02-21-2009 04:12 PM |
| from dev-c++ mingw to netbeans cygwin | yahn | C++ Programming | 10 | 01-14-2009 08:18 AM |
| cygwin sshd weird behavior | jEssYcAt | Tech Board | 6 | 05-19-2008 02:05 PM |
| Problems with compiling code in cygwin | firyace | C++ Programming | 4 | 06-01-2007 08:16 AM |
| Cygwin Server | osal | Networking/Device Communication | 0 | 03-07-2005 12:58 PM |