Questions tagged [freebasic]

FreeBASIC is a free/open source (the compiler is GPL and the runtime library is LGPL with static linking exception), 32-bit & 64-bit BASIC compiler for Microsoft Windows and LInux and a 32-bit compiler for protected-mode extended DOS.

FreeBASIC is a high-level programming language supporting procedural, object-oriented and meta-programming paradigms, with a syntax compatible to Microsoft QuickBASIC. The FreeBASIC project originally began as an attempt to create a code-compatible, free alternative to Microsoft QuickBASIC.

The compiler, fbc, currently supports building for i386-based architectures on the protected-mode extended DOS, Linux, Windows and Xbox platforms. The project also contains thin bindings (header files) to some popular 3rd party libraries such as the C runtime library, Allegro, SDL, OpenGL, GTK+, the Windows API and many others, as well as example programs for many of these libraries.

On Wikipedia: http://en.wikipedia.org/wiki/FreeBASIC

44 questions
0
votes
1 answer

Freebasic install for Raspberry Pi problem

I am looking to install Freebasic on a Raspberry Pi. I have already looked at the Freebasic forum - but it seems from a lot of posts that others have found that following the steps shown no longer end up working. Other Pi forums have said that a…
0
votes
1 answer

using libpruio and libpruw1 in python?

Is there a way to use libpruio and/or libpruw1 (http://users.freebasic-portal.de/tjf/Projekte/libpruw1/doc/html/) in python? I want to make use of libpruw1 to reed (more than 10) ds18b20 as it seams to be much faster than the 'normal' way with dts…
SteffenUM
  • 3
  • 2
0
votes
2 answers

test.bas() error 23: File not found

I'm trying to run a simple FreeBASIC program: Print "Hello World" However when I try to run it, it gives me these errors: yamboy1@laptop:~$ fbc test.bas test.bas() error 23: File not found, crt1.o test.bas() error 23: File not found,…
user8013876
0
votes
2 answers

Integer concatenation with macro

How to concatenate integer correctly with macro ? I must call it twice here because i can't add something after ","(error) #define concat(a,b,c) a##b##c dim as integer a=10,b=20,c=30,d d = a concat(*100+,,)b d = d concat(*100+,,)c ?d 'output =…
nimday
  • 333
  • 3
  • 9
0
votes
1 answer

How to quit barcode reading thru COM port by hitting an enter?

I'm using my barcode scanner thru a COM port, with the below code, which simulates a POS terminal and prints the product name and its price to the screen pulled from a MySQL database. The problem is that while the com port is open, and ready to read…
Gabe
  • 11
  • 6
0
votes
1 answer

Setting hardware flow control parameters in FreeBasic

I'd appreciate advise on how to set the following hardware flow control parameters in FreeBasic ControlHandShake=(DTR_HANDSHAKE, DSR_HANDSHAKE), FlowReplace=(TRANSMIT_TOGGLE, RTS_HANDSHAKE), XonLimit=4096, XoffLimit=1024
Olumide
  • 5,397
  • 10
  • 55
  • 104
0
votes
1 answer

Allegro 5 and FreeBASIC

I cannot find a way to make Allegro5 work with FreeBasic on Windows. I downloaded and installed FreeBASIC-1.05.0-win32.exe. I downloaded Allegro binaries allegro-5.0.10-mingw-4.7.0. The version of fbc installed is the standalone one. I created…
kataz
  • 1
  • 1
0
votes
1 answer

NodeJS can be workable for AMP and Facebook free basic

I'd like to know NodeJS with jabe can be feasible to implement for AMP (Accelerated Mobile Pages) & Facebook Free Basic? Regarding Facebook & AMP documentation, javascript is not allowed to use in but I'm trying to use NodeJS with jade template.
PPShein
  • 13,309
  • 42
  • 142
  • 227
0
votes
1 answer

glRotated and glTranslated cannot execute right when the number is big

glRotated and glTranslated cannot execute right when the number is big for example, the below code can execute right xpos=1 zpos=1 glRotated(90, 1,0,0) glRotated(360, 0,1,0) glTranslated(-xpos,-ypos-2,-zpos) but this one cannot execute…
Null
  • 657
  • 2
  • 6
  • 15
0
votes
1 answer

Free Basic Calculator Issue

I have attempted to create a calculator with FreeBasic. What is the problem with line 9 in my code? Line 6 says that the dim choice is default and not allowed while line 9 tells me the variable isn't declared. 1 declare sub main 2 declare sub add 3…
alstonan25
  • 23
  • 8
0
votes
1 answer

free basic compiler error 23: File not found, libsupc++.a

I am trying to compile a simple a hello world QBASIC program in ubutu 12.04. Compiler is downloaded and installed as instructed here. http://www.freebasic.net/get Also I posted it on askubuntu.com…
Yogesh R.L
  • 609
  • 7
  • 17
-1
votes
3 answers

FreeBasic: error 32: Expected 'END IF' in 'end'

I've been learning FreeBasic and started writing a well Basic text adventure game. I've been following the same formula for a while, but on my most recent development gained the following error: beta.bas(226) error 32: Expected 'END IF' in…
-2
votes
2 answers

How to search for a word in a string in FreeBASIC

I am trying to create an internal function in my FreeBASIC program where i want to check for the word "echo" in the string variable "line0" and if "echo" is part of the string, i want it to echo the input (except "echo")
-2
votes
2 answers

python performance compared to freebasic

I found that my code of python is really slow, using 8min to finish compared to 1min to freebasic could anyone please suggest some optimization first to create digit_array["a","b","c","d","e","f","g","h","i","j"]. divide it, get remainder, again…
kissson
  • 118
  • 1
  • 8
1 2
3