Search found 1384 matches

by caseih
Apr 10, 2020 4:17
Forum: Beginners
Topic: FreeBASIC + tcc
Replies: 14
Views: 367

Re: FreeBASIC + tcc

I wonder if your tcc is incompatible with the C runtime that your Fb installation uses by default. On Windows there are numerous versions of the C standard library in common use (depends on which version of the Mingw toolchain), and mixing them is always problematic. MS is trying to nudge everyone i...
by caseih
Apr 09, 2020 2:25
Forum: Linux
Topic: (L)Ubuntu Focal Fossa (20.04) and libtinfo.so.5
Replies: 11
Views: 238

Re: (L)Ubuntu Focal Fossa (20.04) and libtinfo.so.5

Yeah the only way to keep binary compatibility with older systems is to build against those older libraries. Glibc is backwards compatible, so linking against an older version of glibc will obviously still work on the newer versions. Glibc tries hard to keep the ABI backwards compatible.
by caseih
Apr 09, 2020 1:50
Forum: Linux
Topic: (L)Ubuntu Focal Fossa (20.04) and libtinfo.so.5
Replies: 11
Views: 238

Re: (L)Ubuntu Focal Fossa (20.04) and libtinfo.so.5

Are you talking about building a binary on 20.04 and wanting to run it on older distros?

What problems are you having building fbc on 18.04?

I think statically linking libtinfo is just fine.
by caseih
Apr 08, 2020 19:57
Forum: Linux
Topic: (L)Ubuntu Focal Fossa (20.04) and libtinfo.so.5
Replies: 11
Views: 238

Re: (L)Ubuntu Focal Fossa (20.04) and libtinfo.so.5

I just built FBC 1.07 on my Centos 8 machine. I had to install the ncurses compatibility libraries to get my old bootstrap version of fbc to run. After building, the fbc compiler, runtime, and subsequent compiled executables all link against libtinfo.so.6, as I would expect. FBC is using the system ...
by caseih
Apr 03, 2020 17:26
Forum: Tips and Tricks
Topic: fbgfx versus opengl graphics
Replies: 17
Views: 607

Re: fbgfx versus opengl graphics

I guess my point is that when 2D graphics libraries use OpenGL as a backend, they typically aren't using OpenGL to draw individual pixels or lines. And the FB graphics library isn't either. In fact OpenGL's support for 2D primitives is nearly nonexistent, especially in more modern variants that are ...
by caseih
Apr 02, 2020 15:45
Forum: Tips and Tricks
Topic: fbgfx versus opengl graphics
Replies: 17
Views: 607

Re: fbgfx versus opengl graphics

I'm not surprised this kind of use of OpenGL is not fast. One is far better off setting individual pixels in a buffer, and then pushing that rapidly to the screen with OpenGL, which is what fbgfx is doing when you use the OpenGL backend.
by caseih
Mar 30, 2020 19:17
Forum: Projects
Topic: Charger - A General FreeBASIC Framework
Replies: 11
Views: 480

Re: Charger - A General FreeBASIC Framework

EDIT- The lookup table approach I think would be memory hungry, wouldn't it? Also, not every codepoint maps to a single codepoint, so that's a lot of memory either on the stack or the heap. No, in fact I would think it would be a lot less memory than the current code. Remember, all that select case...
by caseih
Mar 30, 2020 0:05
Forum: Projects
Topic: Charger - A General FreeBASIC Framework
Replies: 11
Views: 480

Re: Charger - A General FreeBASIC Framework

Are you auto-generating the case folding code? Sure seems like most of that giant select case block for case folding could be made into a simple function with a large look-up table. Would be more future-proof also as new languages are added to unicode.
by caseih
Mar 27, 2020 19:06
Forum: Community Discussion
Topic: Freebasic is not smooth in graphics
Replies: 17
Views: 739

Re: Freebasic is not smooth in graphics

Modern OpenGL requires the programmer to keep track of and manipulate the various transformation matrices, and heavily relies on these matrices and vectors for nearly everything. In C++ I used Qt's QMatrix4x4, and also QVector4D, QVector3D, and QVector2D class to do that, which has convenient method...
by caseih
Mar 14, 2020 22:34
Forum: DOS
Topic: Strange errors
Replies: 11
Views: 521

Re: Strange errors

True I had forgotten about that!
by caseih
Mar 14, 2020 15:12
Forum: DOS
Topic: Strange errors
Replies: 11
Views: 521

Re: Strange errors

I’ve written a short program with FB 1.07. No problems for compilers Windows and Linux either 32 or 64 bit. I tried to transfer it under DOS (MS-DOS 6.22 in Virtualbox) for older pcs but I got the following error notification: - - - - - - ld: cannot find filetocompile.o: Too many open files (EMFILE...
by caseih
Mar 13, 2020 23:15
Forum: Tips and Tricks
Topic: WIN-API without any #Include "..."
Replies: 13
Views: 537

Re: WIN-API without any #Include "..."

MrSwiss wrote:Some of us (including myself) simply don't want those approx. 1.5 MB of predefinitions.

Yes that will slow the compiler down, especially if working with multiple modules. The good news is it doesn't affect the executable size in any way.
by caseih
Mar 12, 2020 3:53
Forum: Community Discussion
Topic: BASIC(modified B++ complier) + wxWidgets
Replies: 38
Views: 2393

Re: BASIC(modified B++ complier) + wxWidgets

@kankouhin7937 has nothing to do with the files you downloaded from SourceForge. The zip file there purports to be the source code (and it must be because @kankouhin7937 apparently has modified and extended it). So you can safely delete any executables in that zip file while perusing the code in the...
by caseih
Mar 09, 2020 13:57
Forum: DOS
Topic: How do you get FreeBASIC for DOS on a real retro PC?
Replies: 13
Views: 429

Re: How do you get FreeBASIC for DOS on a real retro PC?

D.J.Peters wrote:On Windows 10 there isn't any of this hardware I/O port drivers any more)

Really?

Pretty sure parallel and serial ports work just like they do in other versions of Windows.
by caseih
Mar 09, 2020 2:40
Forum: DOS
Topic: How do you get FreeBASIC for DOS on a real retro PC?
Replies: 13
Views: 429

Re: How do you get FreeBASIC for DOS on a real retro PC?

You could use an ISA IDE adapter card, and then a standard SD Card to IDE adapter. I have seen such things in my travels. Might come as a DIY kit (board, solder on chips, etc). Not sure how they deal with the BIOS extension, but I've read there are such things available. Alternatively you could use ...

Go to advanced search