Search found 2841 matches

by dkl
Oct 08, 2017 19:59
Forum: General
Topic: Can I use a library for this?
Replies: 30
Views: 948

Re: Can I use a library for this?

Maybe CLEARSCREEN needs to be a global variable (Dim Shared)? Currently it looks like it's not being shared between LOAD_EMULATION() and CLEAR_SCREEN(). The QB dialect allows this due to implicit variable declarations. Edit: Ah, already fixed in fxm's version. If you run your program under strace (e...
by dkl
Oct 04, 2017 17:43
Forum: Community Discussion
Topic: Unofficial FreeBASIC 1.04.0 OS X release
Replies: 35
Views: 6859

Re: Unofficial FreeBASIC 1.04.0 OS X release

It looks like XGetKeyboardMapping()'s second parameter (keycode_entry) is an "unsigned int" instead of "KeyCode aka. unsigned char" as expected by FB's XGETKEYBOARDMAPPING typedef. The declaration here looks like extern KeySym *XGetKeyboardMapping( Display* /* display */, #if Nee...
by dkl
Oct 02, 2017 19:17
Forum: DOS
Topic: How to compile under DosEMU?
Replies: 22
Views: 2249

Re: How to compile under DosEMU?

So it was a problem with the makefile, as in it didn't build gfx_paletteget64.o but tried to include it in the archive at the "AR lib/dos/libfbgfx.a" step? I have no explanation for those compiler linking errors either; is ast-node-bop.o missing from the link command line? Not sure how eit...
by dkl
Oct 02, 2017 17:20
Forum: DOS
Topic: How to compile under DosEMU?
Replies: 22
Views: 2249

Re: How to compile under DosEMU?

I've only ever tested DJGPP builds on Windows or cross-compiling from Ubuntu, but... what errors do you get? Is there a gcc compilation error on src/gfxlib2/gfx_paletteget64.c, or a linking problem later when compiling FB programs using the gfxlib?
by dkl
Oct 02, 2017 17:14
Forum: General
Topic: FreeBASIC crashes when compiling very large programs
Replies: 55
Views: 2072

Re: FreeBASIC crashes when compiling very large programs

Yea, unfortunately fbc doesn't handle such big input nicely. It keeps all DATA statements and other global data in memory at once, and even just "DATA 1" results in 16 AST nodes, plus 7 more per element in a DATA statement. Each AST node is 72/144 bytes (32bit/64bit respectively). So even ...
by dkl
Oct 01, 2017 19:36
Forum: Linux
Topic: New to linux how to run FB
Replies: 8
Views: 750

Re: New to linux how to run FB

Another possible cause of that error is trying to run 32bit fbc on a 64bit Ubuntu Linux system, but the libc6-i386 package is missing, so it doesn't recognize 32bit programs.
by dkl
Sep 28, 2017 17:04
Forum: General
Topic: [solved] "old" code crashed
Replies: 5
Views: 348

Re: "old" code crashed

Happens also on Linux, 32bit or 64bit, git version or 1.05.0: ==4994== Invalid free() / delete / delete[] / realloc() ==4994== at 0x4C2ED5B: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==4994== by 0x40708C: release_gfx_mem (gfx_screen.c:70) ==4994== by 0x40708C: set_mode (gfx_scree...
by dkl
Sep 24, 2017 16:33
Forum: General
Topic: simple parser bug?
Replies: 15
Views: 2313

Re: simple parser bug?

by dkl
Sep 20, 2017 20:22
Forum: Community Discussion
Topic: [Patch] Rendering of FreeBasic graphic on OpenGL
Replies: 82
Views: 7688

Re: [Patch] Rendering of FreeBasic graphic on OpenGL

Ahh yes, I missed the "submit review" button. Should be visible now.
by dkl
Sep 20, 2017 18:15
Forum: Community Discussion
Topic: [Patch] Rendering of FreeBasic graphic on OpenGL
Replies: 82
Views: 7688

Re: [Patch] Rendering of FreeBasic graphic on OpenGL

I've written some review comments on the Github pull request for this, but they're only about some minor formatting issues and such that would be nice to have fixed before merging. Besides that I've looked at whether non-OpenGL graphics modes are affected, but no, it looked good. So we don't have to...
by dkl
Sep 11, 2017 15:55
Forum: Documentation
Topic: Iif compile-time return value
Replies: 15
Views: 1584

Re: Iif compile-time return value

When I added the compile-time evaluation for iif() I thought it would be neat and could be useful in #if expressions or other kinds of meta-programming. I didn't consider that eliminating the temp var could have unwanted side-effects, as in that Byref example. Another problem with solving out the ii...
by dkl
Sep 03, 2017 15:52
Forum: Community Discussion
Topic: What to do about a lack of developers for the compiler?
Replies: 117
Views: 9213

Re: What to do about a lack of developers for the compiler?

It was some older OpenSUSE x86 and x86_64 for Linux builds, which had an old enough glibc to work on Debian stable (if I remember correctly), and didn't cause visible issues like Symbol `ospeed' has different size in shared object, consider re-linking (which I think relates to ncurses) on other syst...
by dkl
Sep 01, 2017 18:35
Forum: Community Discussion
Topic: Question about rtlib
Replies: 13
Views: 1372

Re: Question about rtlib

That's probably true, chances are it only really needs a few declarations from here and there, not full headers.
by dkl
Sep 01, 2017 18:22
Forum: Community Discussion
Topic: What to do about a lack of developers for the compiler?
Replies: 117
Views: 9213

Re: What to do about a lack of developers for the compiler?

Hi, regarding the release making... I think it would be good to rely on an automated build server like St_W's, and possibly split the work/responsibilities between multiple people, each responsible for their platform. Why should someone make DOS releases, if they don't know and care about it. Doing ...
by dkl
Sep 01, 2017 17:08
Forum: Community Discussion
Topic: Question about rtlib
Replies: 13
Views: 1372

Re: Question about rtlib

The only problem I see is that it uses lots of POSIX/libc/kernel (Linux, FreeBSD, etc.) system headers, which are not yet available as .bi and are rather hard to auto-translate and maintain in my experience. But since such bindings are missing for FB anyways (including support for multiple libc's on...

Go to advanced search