Search found 2843 matches

by dkl
Jun 28, 2019 18:20
Forum: Linux
Topic: FB breaks when upgrading to GCC 9.x without latest binutils/ld
Replies: 2
Views: 295

Re: FB breaks when upgrading to GCC 9.x without latest binutils/ld

Wow, that's unfortunate... I wonder, does the fbc test suite already have a test case that would detect this?
by dkl
Jun 06, 2019 15:59
Forum: Linux
Topic: How to compile an .asm file (32 bits) with FB in Linux
Replies: 1
Views: 156

Re: How to compile an .asm file (32 bits) with FB in Linux

If you would like to see the .asm file produced by fbc, there is an fbc command line option for that: -RR

for example: fbc -v -RR foo.bas
or: fbc -v -rr -m foo foo.bas

That should generate foo.asm next to foo.bas.
by dkl
Apr 18, 2019 19:49
Forum: Projects
Topic: fbfrog header translator
Replies: 52
Views: 9524

Re: fbfrog header translator

Yea go ahead, if I can help out a bit that's fine for me. I got no plans to make any big improvements though. For symbol naming conflicts usually the solution is to do something like declare function shell_ alias "shell" ... . There is an fbfrog option for that, -rename_ shell , or -rename...
by dkl
Apr 18, 2019 18:56
Forum: Projects
Topic: fbfrog header translator
Replies: 52
Views: 9524

Re: fbfrog header translator

Yea it allows # comments. The *.fbfrog files can also include others recursively, which can be useful to extract and reuse common parts.
by dkl
Apr 09, 2019 18:37
Forum: Projects
Topic: fbfrog header translator
Replies: 52
Views: 9524

Re: fbfrog header translator

No, it's unfinished, so not really useful. It's a mix of two ideas - 1) using libclang in fbfrog instead of a custom parser. Good, except it can't parse #define bodies, so it still needs some custom parsing for that. 2) making a "just-in-time bindgen" (for 1 target only instead of all targ...
by dkl
Dec 05, 2018 20:31
Forum: Linux
Topic: how to compile FB for Cygwin
Replies: 6
Views: 499

Re: how to compile FB for Cygwin

Maybe we need to add "-target cygwin-x86_64" to the FBC variable above (in the fbc cross-compile step). Looking at the makefile, it doesn't add it automatically. With that you will probably also need FreeBASIC-win64/bin/cygwin-x86_64/{as,ar,ld,gcc}.exe and cc1.exe etc. plus the Cygwin libr...
by dkl
Dec 05, 2018 18:00
Forum: Linux
Topic: how to compile FB for Cygwin
Replies: 6
Views: 499

Re: how to compile FB for Cygwin

Keep in mind that cygwin and mingw-w64 are different toolchains, and FB uses either win64 (mingw-w64, 64bit) or cygwin-x86_64 (cygwin, 64bit), which cannot be mixed. It has to be treated as if cross-compiling (even though it's both 64bit Windows). It should work something like this: 1. get win64 fbc...
by dkl
Aug 07, 2018 19:48
Forum: Libraries
Topic: Updating fbbindings
Replies: 4
Views: 572

Re: Updating fbbindings

Ok, interesting. Crashes are strange, that needs to be debugged. Some parts are understandable, such as ./configure build system invocation being different on the different target. It's really unfortunate that some packages generate some headers at build-time... this is not handled nicely at all cur...
by dkl
Aug 07, 2018 17:32
Forum: Libraries
Topic: Updating fbbindings
Replies: 4
Views: 572

Re: Updating fbbindings

Hi, the last time I worked on fbfrog+fbbindings, it was on Linux only, so maybe it is broken for Windows/Cygwin... but I'm sure that can be fixed. So if you've got useful changes, send a pull request, I can review + merge it. Also I'm not surprised if the download links used in the scripts are dead ...
by dkl
Jul 27, 2018 17:00
Forum: Linux
Topic: Latest FBC install on Debian
Replies: 12
Views: 1328

Re: Latest FBC install on Debian

It's strange that fbc is trying to use 32bit libgcc even though it compiles for 64bit. What do you get when running these commands: gcc -m32 -print-file-name=libgcc.a gcc -m64 -print-file-name=libgcc.a It should give different output, but if it's the same, then maybe some packages are missing: gcc-m...
by dkl
Jul 27, 2018 16:26
Forum: Linux
Topic: Latest FBC install on Debian
Replies: 12
Views: 1328

Re: Latest FBC install on Debian

Try adding the -v option to the fbc compile command, then it should show the target system it's trying to compile for (maybe it's 64bit x86_64 instead of 32bit i686?).
by dkl
Jul 18, 2018 17:45
Forum: General
Topic: Undefined reference to `PNG_LoadFile@16'
Replies: 27
Views: 1921

Re: Undefined reference to `PNG_LoadFile@16'

As counting_pine said, since the library has _PNG_LoadLibrary@8, not @16, it's probably BYVAL AS STRING from old FB versions where it was broken and worked like BYREF AS ZSTRING. The declaration can be changed to BYREF AS ZSTRING or BYVAL AS ZSTRING PTR now and then new FB versions can use the old l...
by dkl
Jun 18, 2018 19:07
Forum: Windows
Topic: Need new gfxlib driver for Windows 7, 8, 10
Replies: 12
Views: 1471

Re: Need new gfxlib driver for Windows 7, 8, 10

SDL backend!
by dkl
Jun 18, 2018 19:04
Forum: Community Discussion
Topic: Dim Byref syntax
Replies: 134
Views: 14166

Re: Dim Byref syntax

Here's a fix that adds the missing initializer validation (disallow non-constant initializers): https://github.com/freebasic/fbc/pull/87 I think allowing initialization of a global ref from another ref by duplicating the other's initree is possible, and should be done in hCheckAndBuildByrefInitializ...
by dkl
Jun 18, 2018 17:36
Forum: Community Discussion
Topic: Dim Byref syntax
Replies: 134
Views: 14166

Re: Dim Byref syntax

For this case: dim shared a as integer = 5 dim shared byref as integer b = a dim shared byref as integer c = b '' fbc crash print a, b, c src/compiler/ast-node-typeini.bas(550): assertion failed at HFLUSHEXPRSTATIC: (expr->class =AST_NODECLASS_CONST) the problem in fbc is that hCheckAndBuildByrefIni...

Go to advanced search