Search found 2574 matches

by badidea
Aug 18, 2022 17:25
Forum: Libraries & Headers
Topic: FLTK headers for FreeBasic OOP (no C wrapper)
Replies: 232
Views: 26568

Re: FLTK headers for FreeBasic OOP (no C wrapper)

Coolman wrote:for freebasic 64 bit, you must use -gen gas64
Thanks. Also compiles & runs the code fine BTW.
by badidea
Aug 18, 2022 7:51
Forum: Libraries & Headers
Topic: FLTK headers for FreeBasic OOP (no C wrapper)
Replies: 232
Views: 26568

Re: FLTK headers for FreeBasic OOP (no C wrapper)

Yes, with both "gen gcc" and "gen gas" compile and run ok.
by badidea
Aug 17, 2022 22:53
Forum: Libraries & Headers
Topic: FLTK headers for FreeBasic OOP (no C wrapper)
Replies: 232
Views: 26568

Re: FLTK headers for FreeBasic OOP (no C wrapper)

Which version of FLTK are you using? fltk1.3 (1.3.4-6) Also, which version of the compiler are you using? fbc32 --version FreeBASIC Compiler - Version 1.09.0 (2022-01-01), built for linux-x86 (32bit) Copyright (C) 2004-2021 The FreeBASIC development team. fbc64 --version FreeBASIC Compiler - Versio...
by badidea
Aug 17, 2022 21:01
Forum: Libraries & Headers
Topic: FLTK headers for FreeBasic OOP (no C wrapper)
Replies: 232
Views: 26568

Re: FLTK headers for FreeBasic OOP (no C wrapper)

Same (as Coolman) here, when trying to compile for 64-bit. Ubuntu Mate 18.04: 00_test.o:(.data.rel+0xe8): undefined reference to `Fl_Group::as_group()' 00_test.o:(.data.rel+0x168): undefined reference to `Fl_Group::as_group()' Compilation failed. When trying 32-bit, I run into linker problems (ld: c...
by badidea
Aug 14, 2022 15:00
Forum: General
Topic: Load Sound in Memory (FBSound 1.2)
Replies: 4
Views: 678

Re: Load Sound in Memory (FBSound 1.2)

... My question was, if this is possible: ... or should i do this: ... Both are possible. Your question is not so much about fbsound, but more about how to access memory or variables from subroutines. What may complicate understanding is that fbsound uses ID's (integers) to access the memory (sound...
by badidea
Jul 26, 2022 17:38
Forum: General
Topic: MYSQL Advise
Replies: 3
Views: 658

Re: MYSQL Advise

by badidea
Jun 19, 2022 17:20
Forum: Community Discussion
Topic: AI that can write programs & stories
Replies: 7
Views: 1183

Re: AI that can write programs & stories

Jane Wakefield is a Technology reporter and not a “senior research fellow in AI at Oxford University.” That is part of the problem. The BBC earns money by writing interesting stories, but they cannot write complete nonsense. So they need scientists for content. And the scientist needs the reporter ...
by badidea
Jun 19, 2022 12:46
Forum: Community Discussion
Topic: AI that can write programs & stories
Replies: 7
Views: 1183

Re: AI that can write programs & stories

Equally, mind-boggling . I have not read the whole article, but if I see an article that predicts some big technical step within ~10 years, I am always very skeptical. 2nd line: "But imagine if you could create your very own twin, an exact copy of yourself, but one that lived a purely digital ...
by badidea
Jun 15, 2022 22:32
Forum: Game Dev
Topic: Indie Game Jam 2022 (with Prizes)
Replies: 10
Views: 4403

Re: Indie Game Competition 2022 (with Prizes)

Nice. So no specific theme?
I have not written a single line of code in the last 2 months. Busy with other stuff currently, but it is not October yet.
First, I'll search for the weirdest desktop OS in existence :-)
by badidea
May 25, 2022 21:44
Forum: Beginners
Topic: Running old QBasic code in FB
Replies: 46
Views: 4087

Re: Running old QBasic code in FB

QB64 (which was named QB32 initially), had some trouble lately, see:
OT - Destruction of QB64 forum and wiki


Freebasic has a 32-bit and 64-bit version.

QBasic and QuickBASIC were both 16-bit I think, but I could be wrong. Too long ago indeed.
by badidea
May 09, 2022 18:20
Forum: Sources, Examples, Tips and Tricks
Topic: Flying Donut...
Replies: 14
Views: 1383

Re: Flying Donut...

Nice, but also on 32-bit fbc, with -exx, I get a runtime error on some runs:

Code: Select all

Spd: 8.0ms  
Aborting due to runtime error 6 (out of bounds array access) at line 49 of test.bas::()
Which is:

Code: Select all

  dim as single e=_Sin(A) , g=_Cos(A) , m=_Cos(B) , n=_Sin(B)
by badidea
Apr 24, 2022 15:02
Forum: Linux
Topic: (SOLVED) GETKEY , CTRL+4 , ERROR
Replies: 3
Views: 3402

Re: GETKEY , CTRL+4 , ERROR

Same here. Ubuntu 18.04, fbc 1.09.0 32/64 bit.
It is a terminal thing, Ctrl+4 sends ^\ see: https://unix.stackexchange.com/question ... do-in-bash
by badidea
Apr 22, 2022 0:14
Forum: General
Topic: __FB_VERSION__
Replies: 2
Views: 363

Re: __FB_VERSION__

"1" instead of "!" in "!.10.0" ?
by badidea
Apr 10, 2022 13:16
Forum: Beginners
Topic: Grid Transfer
Replies: 8
Views: 1081

Re: Grid Transfer

I thought that 'window9' is a GUI library for windows & linux. But this code is for windows only?
by badidea
Apr 10, 2022 11:27
Forum: General
Topic: Communicate with other program (solved)
Replies: 12
Views: 1309

Re: Communicate with other program (solved)

Here is an overview of various Inter-process communication methods on Wikipedia: https://en.wikipedia.org/wiki/Inter-pro ... munication
Of course, some are easier to implement (in freebasic) than others.