Module Problem?
BlitzMax Forums/BlitzMax Beginners Area/Module Problem?
| ||
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? |
| ||
Have you installed MinGW? (correctly) |
| ||
Yes I have....I put MinGw first then I put installed Blitzmax next.... I have done the right order? |
| ||
Open the command prompt (it's in "all programs->accessories" these days) and enter the command "gcc" (without the quotes.) What does it say? |
| ||
Probably need to set the environment variables for MingW. |
| ||
I type on Command Prompt like C:\>gcc and it say gcc: no input files |
| ||
That means it can find gcc. But you must also set the environment variable for MinGW. Mine is: MINGW=C:\MinGWThis is one folder up from wherever gcc is, in my case C:\MinGW\bin. |
| ||
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 |
| ||
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. |
| ||
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. |