Code: Select all
#macro Hi()
#define NewMacro __FB_JOIN__(NewMacro, x)
'' NewMacro '' this produces the recursive define compile error
'' this crashes
Type NewMacro
End Type
#endmacro
Hi()
Code: Select all
#macro Hi()
#define NewMacro __FB_JOIN__(NewMacro, x)
'' NewMacro '' this produces the recursive define compile error
'' this crashes
Type NewMacro
End Type
#endmacro
Hi()
What version of ncurses is required for FBC 1.08? On my system, ncurses5-compat-libs is indeed in the AUR, but not installed. I'm careful with AUR packages as they can sometimes make the system unstable.caseih wrote:Yes this has been brought up before. The answer is that nearly all distros ship a ncurses compatibility library that supplies this older version of the library. On Manjaro, look for a package called ncurses5-compat-libs. Might need to us an AUR for that. Debian, Ubuntu, Fedora, all offer a similar package.
AUR packages are not binaries; they have to be built and I am generally careful with that. There are ways to get FBC 1.09 running on Manjaro for sure, but I'll wait for the repo update.caseih wrote:In your case ncurses5-compat-libs is what you want. It certainly won't affect your system stability. It merely provides this older version of the shared library, which coexists with ncurses 6.
The default linux binaries are built on ubuntu-16.04 so the compiler links with (now) older libraries. There are other versions of ubuntu also.Munair wrote:Yes, but I wanted to inform the developers of this issue.
That is the case with Manjaro. They're usually pretty quick with updating packages.coderJeff wrote:Some distros seem to have maintainers that build fbc for the distro - which is best practice imho.
That library is on my system at /usr/lib/x86_64-linux-gnu/libtinfo.so.5fbc: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
Is there a solution or shall I give up?To compile FB programs, please install the following packages (names may
vary depending on your Linux distribution):
Debian/Ubuntu:
gcc libncurses5-dev libffi-dev libgl1-mesa-dev
libx11-dev libxext-dev libxrender-dev libxrandr-dev libxpm-dev
libtinfo5 libgpm-dev
See if that path is missing from /etc/ld.so.conf file (or the others referred by it, but I doubt it is the case)... if not, add it and then launch ldconfig again.Chris_D wrote:I found this thread by searching this forum for "Debian". My problem is that on Debian I get this error when running fbc:
That library is on my system at /usr/lib/x86_64-linux-gnu/libtinfo.so.5fbc: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
I installed the dependencies specified in readme.txt:
Is there a solution or shall I give up?To compile FB programs, please install the following packages (names may
vary depending on your Linux distribution):
Debian/Ubuntu:
gcc libncurses5-dev libffi-dev libgl1-mesa-dev
libx11-dev libxext-dev libxrender-dev libxrandr-dev libxpm-dev
libtinfo5 libgpm-dev
Chris D
Which fbc package did you download?Chris_D wrote:I found this thread by searching this forum for "Debian". My problem is that on Debian I get this error when running fbc:
fbc: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
Code: Select all
const fileName = "guitarra.QSF"
var hFile = FreeFile()
if open(fileName,for binary,access read,as hFile) then
print "error: can't read: '" & fileName & "' !"
beep:sleep:end 1
end if
var nBytes = lof(hFile)
print "file size: " & nBytes
dim as ubyte ptr fileBuffer=allocate(nBytes)
get #hFile,,*fileBuffer
close hFile