Can't compile C files in Vista

BlitzMax Forums/BlitzMax Programming/Can't compile C files in Vista

JoshK(Posted 2009) [#1]
-I installed Vista 32-bit Home Premium.

-Installed BlitzMax 1.30.

-Installed MinGW 5.1.3.

-Added ";C:\MinGW\bin" to the Path environment variable.

When I try to build a module, I get this error:
Building engine
Compiling:IncBin.bmx
flat assembler version 1.66
3 passes, 49913 bytes.
Compiling:Timer.bmx
flat assembler version 1.66
3 passes, 3998 bytes.
Compiling:AppTiming.bmx
flat assembler version 1.66
3 passes, 6874 bytes.
Compiling:OpenGLHelper.bmx
flat assembler version 1.66
4 passes, 19645 bytes.
Compiling:Maths.c
Build Error: failed to compile C:/Users/MyName/Desktop/Engine/Imports/Maths.c
Process complete


Everything worked fine with Windows XP.


Snixx(Posted 2009) [#2]
try adding a new system variable called 'MinGW' with a value of 'C:\MinGW'


Gabriel(Posted 2009) [#3]
You don't have MinGW installed properly. You need to follow all of the instructions on here, paying careful attention to those marked specific for Window Vista.

http://www.blitzbasic.com/Community/posts.php?topic=72892


JoshK(Posted 2009) [#4]
I reinstalled MinGW as it says and I still get the same error.


JoshK(Posted 2009) [#5]
Thanks, adding the MinGW environment variable made it work. Maybe that should be added to the first forum post.


Gabriel(Posted 2009) [#6]
Yes, sorry, I should have said that you have to read down past Mark's bit.


Wiebo(Posted 2009) [#7]
It's important that you extend the SYSTEM path variable, and not the user path variable. I wrote a post about it on my blog as well, cos I had the same problems. =\


AdrianT(Posted 2009) [#8]
I used the Bmax companion tool to install mingw. then make sure UAC is turned off or your ide runs as admin or you get problems and can only compile in debug mode. setting compatibility to run as admin for a few things fixed everything for me. I keep UAC turned on in vista.


AdrianT(Posted 2009) [#9]
blitzmax companion

http://www.blitzmax.com/Community/posts.php?topic=79814