GCC broken in vista?
Miscellaneous Forums/General Discussion/GCC broken in vista?
Ive got a problem. Vista has broken MinGW/GCC when using C++ projects on a fileserver! Its no longer posssible to compile on network drives! GCC must be installed on the same partition as the compile.
This is apparently a known problem on vista, some fault with the compiler not looking for its own libs properly or something, weirdly its not a problem on either XP or Ubuntu.
This probably explains my recent problems trying to build 3rd party MAX libs on vista.
Does anyone know of an alternative 100% GCC compatible free c++ compiler for windows vista that codeblocks supports and supports servers?
Have you tried copying the contents of the contents of the MinGW\libexec\gcc\mingw32\3.4.5 folder into MinGW\bin ?
Don't know whether it applies to network drives, but I've seen it mooted as the solution to a number of GCC problems on Vista, including getting BlitzMax to compile C code.
Where doe's MinGw reside ? on the file server or on your local drive. You may be better setting some environment variables for mingw look here for tips
http://www.blitzbasic.com/Community/posts.php?topic=67297 NOTE this sets up a command build enviroment but can be adapted to be used in the system variables environment.
And don't forget to restart your computer for them to take effect :)
@gabriel, yes that one is set (it doesnt work at all if it isnt, local or not) .
@Dawlane minGW is installed in its default install location on C. All my projects are stored on my fileserver/programming (P:) which i access the same files from all my machines.
The GCC_EXEC_PREFIX is the key. MinGW looks for this to find \MinGW\lib\gcc\mingw32\3.4.5 :)
Full instructions for setting up MinGW in Windows (including Vista):
http://www.syntaxbomb.com/forums/showthread.php?t=1808This should be a sticky somewhere since setting up MinGW can seriously mess with your head.
Here's the soultion you will have to have Administrators rights
Right click my computer Select Properties
In the Tasks Menu on the Left Click Advanced system settings.
In the Systems Properties click the Envitonment Variables... button
In the System Variables section click the New... button
In the Variables name text box enter MINGW and in the value enter
C:\MINGW\bin;C:\MINGW\include;C:\MINGW\lib;C:\MINGW\mingw32\bin;C:\MINGW\libexec\gcc\mingw32\3.4.2 (or which version of mingw32)
Again create another entry by clciking the New button
and entering GCC_EXEC_PREFIX as the variable name and the value as C:\MINGW\lib\gcc\
Now edit the PATH variable and add ;%MINGW% at the end (or ;%MINGW%; if you stick it in the middle).
Don't for get to reboot.
You don't have to have MINGW installed on drive C: and you can install it in a layered directory as
long as the directory names don't have spaces (e.g. P:\Compilers\Free\MINGW\).
And as I was typing this I see GFK provided a link.
Thanks guys, ill have a look at all that when i get time.
The is an update for MINGW to "FIX" vista issues (
http://sourceforge.net/project/showfiles.php?group_id=2435&package_id=82723 ). For some reason the MinGW installer will not update to these packages, so you will have to install them manualy.