Search found 2841 matches

by dkl
May 02, 2018 15:48
Forum: General
Topic: fbc crash in lang deprecated
Replies: 6
Views: 512

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: 788

Re: 32/64 bit compiler issue

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

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: 3282

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: 429
Views: 60414

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: 52
Views: 8913

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: 1997

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: 1997

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: 647

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: 1997

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.
by dkl
Jan 07, 2018 21:03
Forum: Community Discussion
Topic: What's new since the last release awaiting in the night build?
Replies: 4
Views: 682

Re: What's new since the last release awaiting in the night build?

Hi,

there is a changelog.txt that documents the not-yet-released changes in the section for the not-yet-released version 1.06.
by dkl
Dec 31, 2017 12:29
Forum: Beginners
Topic: Error "(null).dll was not found"
Replies: 5
Views: 494

Re: Error "(null).dll was not found"

I think I saw this before with libfoo.dll.a import libraries when the LIBRARY "foo.dll" part was missing from the .def file passed to dlltool. In that case it depends on how the DLL and its import library (if any) are built. You could try running objdump (from MinGW-w64 toolchain) on the e...
by dkl
Dec 19, 2017 23:48
Forum: Projects
Topic: compile-time bindgen for FB
Replies: 18
Views: 1997

Re: compile-time bindgen for FB

Using "wrapper" .bi files to contain manually written declarations besides the #include_c/#bindgen keyword sounds like a great idea. Probably fbbindgen can just omit declarations that it can't translate. I think this would mostly help with complex macros/inline functions, but probably some...
by dkl
Dec 09, 2017 22:08
Forum: Projects
Topic: compile-time bindgen for FB
Replies: 18
Views: 1997

Re: compile-time bindgen for FB

Well, I've been experimenting with libclang in fbfrog (after finding a bug in fbfrog's custom CPP), and making it single-target only. It's close to a full rewrite: By using libclang, most of the existing C parsing code becomes obsolete and must be replaced with a libclang AST parser. And being singl...
by dkl
Dec 07, 2017 10:03
Forum: Projects
Topic: compile-time bindgen for FB
Replies: 18
Views: 1997

compile-time bindgen for FB

Hi, FB bindings for C/C++ are a recurring issue, something I've been personally interested in, and spent a lot of time on. But no matter how good the .bi files are, they're always outdated... How about making a binding generator for FB that runs during .bas file compilation, like #include_c "fo...

Go to advanced search