Forum

> > Off Topic > BlitzMax: Error while compiling the code
Forums overviewOff Topic overviewLog in to reply

English BlitzMax: Error while compiling the code

2 replies
To the start Previous 1 Next To the start

old BlitzMax: Error while compiling the code

GeoB99
Moderator Off Offline

Quote
As the title says, whenever I build the executable from the code it just won't let doing it. Here's the code:
1
2
3
4
5
'A simple program

Function PrintText()
	Print "Just text, nothing else."
EndFunction
And here's the debug info when I compile it:

Building untitled2
Compiling:untitled2.bmx
flat assembler  version 1.68  (1048560 kilobytes memory)
3 passes, 3536 bytes.
Linking:untitled2.debug
/usr/bin/ld: /home/lol/BlitzMax/mod/pub.mod/lua.mod/lua.debug.linux.x86.a(loadlib.c.debug.linux.x86.o): undefined reference to symbol 'dlopen@@GLIBC_2.1'
//lib/i386-linux-gnu/libdl.so.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Build Error: Failed to link /home/lol/BlitzMax/tmp/untitled2.debug
Process complete


I have installed every library needed for BMX to compile however it did not lead to the results I want to expect whatsoever. As far as I remember, DSO is a dynamic/shared object but I have no idea how do I fix it. Any thoughts?

old Re: BlitzMax: Error while compiling the code

GeoB99
Moderator Off Offline

Quote
Done and it is still the same. By the way I added the following lines below
SuperStrict
line in lua.bmx, is that correct?

• Edit: I just needed to add
Import "-ldl"
at the top of the code for compilation. The case is now solved.
edited 1×, last 10.07.17 10:13:37 am
To the start Previous 1 Next To the start
Log in to replyOff Topic overviewForums overview