Search found 2831 matches

by dkl
Jun 18, 2018 19:07
Forum: Windows
Topic: Need new gfxlib driver for Windows 7, 8, 10
Replies: 12
Views: 494

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: 78
Views: 9051

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: 78
Views: 9051

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...
by dkl
May 09, 2018 17:35
Forum: Linux
Topic: Missing files in 64-bit install script and how it could be resolved
Replies: 3
Views: 157

Re: Missing files in 64-bit install script and how it could be resolved

Hi, it should be noted that some of the .bi files from the 32bit install were excluded from the 64bit version, because they do not support 64bit yet. So it's not safe to use them on 64bit. As far as I remember not all .bi files in fbc repository itself were fixed up yet. The main problem usually is ...
by dkl
May 09, 2018 17:31
Forum: Linux
Topic: Both fbc32 and fbc64 on 64-bit Ubuntu (not a question)
Replies: 2
Views: 155

Re: Both fbc32 and fbc64 on 64-bit Ubuntu (not a question)

It's nice to see this being used/noticed, because it was intended to work this way. Parallel installation of libraries for easy cross-compiling, and shared headers. Also a note that's interesting for fbc development: The commands "fbc32 -arch 64" and "fbc64", aswell as "fbc6...
by dkl
May 02, 2018 15:48
Forum: General
Topic: fbc crash in lang deprecated
Replies: 6
Views: 216

Re: fbc crash in lang deprecated

Looks like SourceForge bugs can have "labels", which could be used for this. Then it would also make sense to enable the "labels" column in the list view. Also new fields can be added (currently we have the "Component" one).
by dkl
Apr 10, 2018 20:36
Forum: Beginners
Topic: 32/64 bit compiler issue
Replies: 10
Views: 388

Re: 32/64 bit compiler issue

by dkl
Apr 03, 2018 18:57
Forum: Projects
Topic: fbfrog header translator
Replies: 41
Views: 6269

Re: fbfrog header translator

Nah, that's dead since fbfrog 1.0. It was fun to make, but there was just no point in having it...
by dkl
Mar 24, 2018 19:29
Forum: Projects
Topic: fbcunit - fbc compiler unit testing component
Replies: 44
Views: 1953

Re: fbcunit - fbc compiler unit testing component

We should merge the changes anyways, because what else can you do when Travis randomly starts failing. I mean, it would most likely fail to build the current master too, with or without the changes. For fbc, I don't think Travis builds passing or reviews on every change can be made mandatory, due to...
by dkl
Mar 11, 2018 19:37
Forum: Community Discussion
Topic: Where can I get a Recent-Git-Build of FreeBASIC?
Replies: 400
Views: 50079

Re: Where can I get a Recent-Git-Build of FreeBASIC?

Looks like "refreshing the repository" (sf.net/p/fbc - Code - Admin - Code - Refresh Repository) fixed it.
by dkl
Mar 02, 2018 17:40
Forum: Projects
Topic: fbfrog header translator
Replies: 41
Views: 6269

Re: fbfrog header translator

default.h belongs to fbfrog itself, it exists at include/fbfrog/default.h in the fbfrog source code. The include/ directory (with fbfrog/default.h in it) should be next to fbfrog.exe so it can be found. To support CURL_STATICLIB, you could try to save the following as curl.fbfrog: -declarebool CURL_...
by dkl
Feb 13, 2018 20:33
Forum: Projects
Topic: compile-time bindgen for FB
Replies: 18
Views: 1320

Re: compile-time bindgen for FB

Indeed, I was thinking of a standalone bindgen program; fbc can invoke it and read in the temporary .bi file. The special cases like symbol renaming would have to be specified as options somewhere (maybe in a wrapper .bi file, or an .ini file). All in all it shouldn't affect FB code any differently ...
by dkl
Jan 24, 2018 19:11
Forum: Projects
Topic: compile-time bindgen for FB
Replies: 18
Views: 1320

Re: compile-time bindgen for FB

Yea, all your points are correct. The library's header files would have to be available, together with the MinGW/system headers. Since it uses libclang it doesn't need a C compiler directly - just the headers. This is relatively easy on GNU/Linux, or if you have MinGW anyways because you had to comp...
by dkl
Jan 22, 2018 18:28
Forum: General
Topic: cpp ref call
Replies: 8
Views: 375

Re: cpp ref call

Hi, there seem to be 3 issues here: 1. fbc uses wrong mangling according to Itanium C++ ABI: void foo(int a, int b) {} // _Z3fooii <- gcc and fbc match here (for the byval case) void foo(int &a, int &b) {} // _Z3fooRiS_ <- gcc uses S_ relational reference ("compression/substitution"...
by dkl
Jan 09, 2018 18:22
Forum: Projects
Topic: compile-time bindgen for FB
Replies: 18
Views: 1320

Re: compile-time bindgen for FB

Yea, I'm looking for help with the idea, someone else who works on it, because I won't have time to finish it by myself.

Go to advanced search