John's Computer Journal: MinGW and mSYS on Vista

Wednesday, April 25, 2007

MinGW and mSYS on Vista

MinGW doesn't work well on Vista without adding some extra environment variables. The following environment variables will allow gcc to find its sub programs, the standard include paths and libraries when linking.

MinGW Variables

MinGW must be installed to the root directory. For example c:\tools\mingw will not work. It must be c:\mingw.

mSYS Variables

Vista will force a User Access Control (UAC) message to elevate privileges whenever it detects a program with the words setup, install, or patch in the filename or description. However when a program is run from the command line, Vista will not bring up the (UAC) message and just deny access to the executable. To get around the problem make sure to work with elevated privileges when performing a make install or when patching.


No comments: