MinGW

BlitzMax Forums/BlitzMax Programming/MinGW

Isaac P(Posted 2009) [#1]
I've am having trouble setting up MinGW on windows XP.

I have followed the same steps that I have had work previously with XP. I have also successfuly got it set up on Vista.

I have installed to C:\MinGW

I have added a MinGW environment variable equating to: c:\MinGW

I have also added: ;c:\MinGW\bin to the end of my PATH environmental variable.

However, when I try to rebuild modules I get this error:

Building Modules
Compiling:blitz_app.c
Build Error: failed to compile C:/Program Files/BlitzMax/mod/brl.mod/blitz.mod/blitz_app.c
Process complete



Volker(Posted 2009) [#2]
Hi Marc,

just had to install MingW yesterday on a new XP and was very
happy that it worked on the first try.
I used this guide: http://ziggybcn.proboards31.com/index.cgi?board=publisher&action=display&thread=134
Have you installed G++ compiler too?


AdrianT(Posted 2009) [#3]
I use the bmax companion

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

that downloads and installs everything you need automatically including mingw.


markcw(Posted 2009) [#4]
I have also added: ;c:\MinGW\bin to the end of my PATH environmental variable.

You could have missed the semi-colon from the PATH variable. It should look like:
blahpath1;blahpath2;c:\MinGW\bin;


Isaac P(Posted 2009) [#5]
Do you know how silly I feel.

changing the path from:

;c:\MinGW\bin

to

;c:\MinGW\bin;

Fixed it.

I didnt realise you needed a semi-colon at the end of the last path variable too!

Thanks for all your help!


GfK(Posted 2009) [#6]
I didnt realise you needed a semi-colon at the end of the last path variable too!
You don't. None of my PCs have that and everything works perfectly.

Must've been something else.


xlsior(Posted 2009) [#7]
Did you reboot the PC?

Changes to the path and such don't take effect until after a reboot IIRC


Warpy(Posted 2009) [#8]
just closing the command prompt and opening it up again does it for me.


Brucey(Posted 2009) [#9]
Changes to the path and such don't take effect until after a reboot IIRC

Only true for pre-XP.

As Warpy says, (re)starting a process is enough to pick up the new settings.


markcw(Posted 2009) [#10]
Sorry, you don't need the semi-colon, it's just a separator char, you also don't seem to need a trailing backslash. I remember I had to reboot before it worked for me.


Wiebo(Posted 2009) [#11]
Make sure to add the path to the original path in the SYSTEM variables, and then open a NEW command prompt. Any prompt that is open will not dynamically 'get it'.


Isaac P(Posted 2009) [#12]
I dont understand why it started it working all of a sudden then.

Could have been the process or the restart.

Oh well its working now so I'm happy :)


Compt-Man(Posted 2009) [#13]
Thank You. Had the same mistake on my computer.