Problem here. Failed to Compile

BlitzMax Forums/MiniB3D Module/Problem here. Failed to Compile

Captain Wicker (crazy hillbilly)(Posted 2012) [#1]
What is this?
failed to compile C:/Program Files/BlitzMax/mod/mini3d.mod/inc/std.cpp



xlsior(Posted 2012) [#2]
In order to compile .cpp files, you need to have MinGW installed and configured


Captain Wicker (crazy hillbilly)(Posted 2012) [#3]
how do I configure MiniGW? I've installed it already. :?


xlsior(Posted 2012) [#4]
Make sure that you have the correct MinGW version... Plus you may also need to set an environment variable, add the installation folder to your windows PATH, and reboot.

For some discussions about the MinGW install and settings, see this thread: http://www.blitzbasic.com/Community/posts.php?topic=95892


Captain Wicker (crazy hillbilly)(Posted 2012) [#5]
What about this?
Building BirdDemo
Compiling:bbtype.bmx
flat assembler  version 1.66
3 passes, 8440 bytes.
Compiling:bbvkey.bmx
flat assembler  version 1.66
3 passes, 8647 bytes.
Unable to create temporary directory
Process complete

and
Building untitled1
Compiling:untitled1.bmx
Compile Error: Can't find interface for module 'blitz3d.blitz3dsdk'
[C:/Program Files/BlitzMax/tmp/untitled1.bmx;3;1]
Build Error: failed to compile C:/Program Files/BlitzMax/tmp/untitled1.bmx
Process complete

I have now configured mingw but keep getting this when compiling.

Last edited 2012


xlsior(Posted 2012) [#6]

Unable to create temporary directory



Did you by any chance install to "c:\program files" ?

If so, that folder has special access permissions, where the windows user access controls prevent the creation of files/folders after install time. For that reason, the blitzmax installer defaults to c:\blitzmax.

If you DID install to the program files folder, there are three workarounds, eitehr of which should fix it:
1) Disable windows UAC
2) reinstall blitzmax to c:\blitzmax
3) Manually change the permissions of the blitzmax install folder to remove the restrictions


Compile Error: Can't find interface for module 'blitz3d.blitz3dsdk'



This piece of code has a dependency on the blitz3d.mod module -- do you have it installed on your system? ( it would be under blitzmax\mods\blitz3d.mod )
If not, then that's the problem.
If you DO have it there, then you will need to (re)compile the module for it to be found & recognized.
In the IDE, go to: program menu -> build modules

If the problem persists, try the 'build all modules' option.