badidea wrote:I have been using linux and freebasic for almost 10 years now, but I have never tried to compile fbc itself.
I just run the install script which puts fbc in /usr/local/bin and include files like string.bi in /usr/local/include/freebasic and some libraries in /usr/local/lib/freebasic and it works.
I started over, following your example. I ran the script. I have four folders under the parent. These folder are "bin" "include" "lib" and "man."
I cannot specify the parent because this editor changes the name. How about "f" + "basic" concatenated.
So, I run the compiler, like this, from the "bin" folder:
./fbc test.bas -e and I get
ld: cannot find -lncurses
I enter
ld -help and I get an extremely long output. Quickly browing, it seems to have something to do with libraries. It did not make a direct library reference because I copied "string.bi" to the same folder as the compiler, perhaps. Next?
========================
Edit: After some searching on Ubuntu's web site, I found the problem. I needed to build a library. Problem solved.