Module Problem?

BlitzMax Forums/BlitzMax Beginners Area/Module Problem?

Hotshot2005(Posted 2009) [#1]
when I build the Module and I get the error saying

Building Modules
Compiling:freeaudio.cpp
Build Error: failed to compile C:/Program Files/BlitzMax/mod/pub.mod/freeaudio.mod/freeaudio.cpp
Process complete

does anyone know how to fixed the problem please?


Brucey(Posted 2009) [#2]
Have you installed MinGW? (correctly)


Hotshot2005(Posted 2009) [#3]
Yes I have....I put MinGw first then I put installed Blitzmax next....

I have done the right order?


Gabriel(Posted 2009) [#4]
Open the command prompt (it's in "all programs->accessories" these days) and enter the command "gcc" (without the quotes.) What does it say?


TaskMaster(Posted 2009) [#5]
Probably need to set the environment variables for MingW.


Hotshot2005(Posted 2009) [#6]
I type on Command Prompt like C:\>gcc

and it say gcc: no input files


Floyd(Posted 2009) [#7]
That means it can find gcc.

But you must also set the environment variable for MinGW. Mine is:

MINGW=C:\MinGW
This is one folder up from wherever gcc is, in my case C:\MinGW\bin.


Hotshot2005(Posted 2009) [#8]
Mine is Windows7 (C:) > MinGw > Bin >

Then you got lists of things like

Install-tools
Addr2line
As
C++ Filt
CC1
Collect2
CPP
Dlltool
Dllwrap
GCC
GPROF
ID
MINGW32-GCC
MINGW32-GCC-3.4.5
NM
OBJCOPY
OBJDUMP
RANLIB
READELF
SIZE
STRING
STRIP
WINDMC
WINDRES


Floyd(Posted 2009) [#9]
Look in C:\MinGW. The only .exe I have is

MinGW-5.1.4.exe

along with the various folders \bin, \doc etc.

Be sure you have the MINGW environment variable pointing there.

On XP you get at this by Control Panel ... Performance and Maintenance ... System ... Advanced. I don't know about Windows 7.

If you have MINGW set properly and it still doesn't work then you might have to do something about User Account Control. I don't have Vista or Windows 7 so I can't help there.


Danny(Posted 2009) [#10]
Here's the trick:

When installing minGW, do not go for the default minimal install, but be sure to include the "G++, Objective C and MinGW Make" components! Then the FreeAudio (and a whole lot more) will build correctly.

To be honest, I assume the Objective C is the one that does it. But I have no idea which are required/useful to include nor if any of the other compilers should be included as well like the G77, Ada and Java compilers.

Enjoy,

Danny.