FileSystem Error: Can't Get Anything to Compile

Miscellaneous Forums/Linux Discussion/FileSystem Error: Can't Get Anything to Compile

Hi,

I've recently installed Ubuntu 6.06, downloaded all packages as described in the HowTo's and extracted, updated and sync'd BlitzMax.

However, whenever I try to compile any program in BlitzMax, I get the following error message:

Building source
Compiling:source.bmx
flat assembler  version 1.64
3 passes, 3174 bytes.
Linking:source
/usr/bin/ld: warning: libstdc++.so.6, needed by /usr/lib/libGLU.so, may conflict with libstdc++.so.5
/home/sebholl/BlitzMax118_Linux/BlitzMax/mod/brl.mod/filesystem.mod/filesystem.release.linux.x86.a(filesystem.bmx.release.linux.x86.o): In function `brl_filesystem_CreateFile': undefined reference to `remove_'
/home/sebholl/BlitzMax118_Linux/BlitzMax/mod/brl.mod/filesystem.mod/filesystem.release.linux.x86.a(filesystem.bmx.release.linux.x86.o): In function `brl_filesystem_DeleteFile': undefined reference to `remove_'
collect2: ld returned 1 exit status
Build Error: Failed to link /home/sebholl/hello/source
Process complete


As an example of the source code I am using, have a look below:

SuperStrict
Global wndMain1:TGadget = CreateWindow("Hello - I'm Window ",10,10,400,300,Null,15)

Repeat

	Select WaitEvent()

	Case EVENT_WINDOWCLOSE;End

	EndSelect

Forever


End


I know next to nothing about Linux so I was wondering whether someone can help me get it working...


Thanks


Seb

Eeek. Try commenting out lines 175 and 218 of brl.mod/filesystem.mod/filesystem.bmx and then build modules before rebuilding your app.

Thanks skid. I've commented out 175 and 218, hit Rebuild All and while the modules are recompiling, it halts at:

Compiling:glew_static.c
In file included from /home/sebholl/BlitzMax118_Linux/BlitzMax/mod/pub.mod/glew.mod/GL/glew.h:1103,
                 from /home/sebholl/BlitzMax118_Linux/BlitzMax/mod/pub.mod/glew.mod/glew.c:32,
                 from /home/sebholl/BlitzMax118_Linux/BlitzMax/mod/pub.mod/glew.mod/glew_static.c:3:
/usr/include/GL/glu.h:37:19: GL/gl.h: No such file or directory
Build Error: failed to compile /home/sebholl/BlitzMax118_Linux/BlitzMax/mod/pub.mod/glew.mod/glew_static.c
Process complete


Cheers

Seb

Finally managed to get the modules to recompile after having to reinstall mesa-gl-dev and other packages. After rebuilding application, all is working well.

Thanks Skid for the fix and the prompt reply.