Search found 298 matches

by TeeEmCee
Aug 19, 2020 10:51
Forum: General
Topic: How can I use fbgfx in C?
Replies: 6
Views: 480

Re: How can I use fbgfx in C?

I have no idea about how to set up my environment like you say. ... Can you hint me about what kind of setup I should do to be able to just write a program like your example and get it to compile without issues? You only need 1) gcc, 2) a compiled copy of FB, 3) the source code for FB (for the head...
by TeeEmCee
Jul 13, 2020 0:58
Forum: General
Topic: Crashing on x64 execution
Replies: 8
Views: 400

Re: Crashing on x64 execution

Yes, the recent change to array descriptors will cause crashes like this if you mix fbc.exe and libfb.a from different compiler versions, although usually ABI changes to the runtime are rare and you get away with doing it.
by TeeEmCee
Jul 05, 2020 1:16
Forum: Community Discussion
Topic: Getting old
Replies: 39
Views: 1986

Re: Getting old

Just for curiosity: Does anybody know what programming language(s) today's coding - juniors use? Do they code at all? Or do they content theirselfes with slandering at the social media? As a low-order-bitter I hate to intrude, but HackerRank has run surveys since 2018 which provide fascinating answ...
by TeeEmCee
Jun 30, 2020 13:47
Forum: Linux
Topic: Linux freebasic portability issue
Replies: 8
Views: 770

Re: Linux freebasic portability issue

Ah, cool. I'm planning to switch to dynamically loading SDL and SDL_mixer too so that I can use either SDL 1.2 or 2.0, whichever is present: I have separate graphics and audio backends based on SDL 1.2 and 2.0 but can't currently link both into the engine at once. Statically linking libtinfo would p...
by TeeEmCee
Jun 29, 2020 11:09
Forum: Linux
Topic: Linux freebasic portability issue
Replies: 8
Views: 770

Re: Linux freebasic portability issue

Hello, I have experience compiling portable FB binaries that work on (AFAIK) any linux system since ~2011. See https://rpg.hamsterrepublic.com/ohrrpgce/Portable_GNU-Linux_binaries ncurses is so unportable that it's killing FreeBasic on Linux. Getting rid of this dependency is the first order of busi...
by TeeEmCee
Jun 29, 2020 9:52
Forum: Community Discussion
Topic: Mac OS X Support
Replies: 23
Views: 1137

Re: Mac OS X Support

I recommend that you edit fbc.bas which is in the src/compiler folder and comment-out lines 846 and 847 (they could be different numbers) What do you mean by "recommend"? What happens if you don't do it? I haven't had any problem compiling and using FB on Catalina. As far as I remember. T...
by TeeEmCee
Jun 05, 2020 13:20
Forum: Community Discussion
Topic: native At&t Assembly emitter
Replies: 17
Views: 946

Re: native At&t Assembly emitter

I doubt you want to use TCC's assembler specifically. You want to replace GCC/binutils with TCC, right? In that case, TCC should be used as a C compiler, not an assembler. As srvaldez said, fbc already supports at&t syntax asm when generating C (it can parse inline at&t assembly (although no...
by TeeEmCee
May 29, 2020 2:35
Forum: Linux
Topic: include not found
Replies: 4
Views: 479

Re: include not found

Is ~/FreeBasic/include/freebasic really the directory that copy of fbc checks for includes? Try "fbc -showincludes somefile.bas" for a file including some standard includes, and see where they are found. Of course fbc will look for includes in a path relative to where it is installed. But ...
by TeeEmCee
May 11, 2020 6:07
Forum: General
Topic: How to translate C headers contain gcc __attribute__?
Replies: 45
Views: 1495

Re: How to translate C headers contain gcc __attribute__?

I have an ESP8266; I should try. Serv the standard pages (Intro, Parameters, Help, ...) by any existing standard server. And create only the dynamically generated part by an fcgi module, invoked by the standard server. You need not care about all that boring standard stuff (protocols, encryption, er...
by TeeEmCee
May 10, 2020 15:16
Forum: General
Topic: How to translate C headers contain gcc __attribute__?
Replies: 45
Views: 1495

Re: How to translate C headers contain gcc __attribute__?

Serving http-files can get done by any server (ie. Apache, nginx, lighttpd). And if you need a special connection to any FB code, you can add an fcgi-module. libmicrohttpd isn't attempting to compete with Apache, etc, it's for embedding inside applications. I'm interested in embedding a tiny HTTP s...
by TeeEmCee
May 08, 2020 12:42
Forum: Community Discussion
Topic: Why did you choose FreeBASIC?
Replies: 37
Views: 2743

Re: Why did you choose FreeBASIC?

This thread went very offtopic (starting with a swipe at FP in the very first post). But I always find a lot of value in marcov's sage posts on this forum, even if he's not a FB user, and hence gets (heavily) sidetracked to talking about Pascal. Back on topic... I haven't thought about this in years...
by TeeEmCee
May 06, 2020 15:16
Forum: Beginners
Topic: Could I use fbc -gen gcc with clang as the compiler?
Replies: 21
Views: 897

Re: Could I use fbc -gen gcc with clang as the compiler?

clang is already a cross compiler. check with clang -v to see apart from m64 it also supports m32. If so, use clang -m32. You're right. (Thanks for the hint, I was confused by some other error message that I mistook to mean clang wasn't doing a 32-bit build. I fixed that problem.) But still, the cl...
by TeeEmCee
May 05, 2020 15:25
Forum: Community Discussion
Topic: FreeBASIC and C++ interop current status?
Replies: 15
Views: 916

Re: FreeBASIC and C++ interop current status?

Java has interfaces that are also a form of MI. Yes, I think that was systemctl's point. Since only one base class can contain members, most of the nasty complexity of MI disappears. No offsetting pointers when casting to a base class, no need for multiple vtable pointers. I read that Java interfac...
by TeeEmCee
May 05, 2020 13:45
Forum: Beginners
Topic: Could I use fbc -gen gcc with clang as the compiler?
Replies: 21
Views: 897

Re: Could I use fbc -gen gcc with clang as the compiler?

BTW, pass -Wno-builtin-requires-header -Wno-incompatible-library-redeclaration to clang to silence the warnings about fbc-generated code. the command was fbc -gen gcc -arch 32 -asm att -r -m hello hello.bas without the -asm att clang spits out error messages like: hello.c:71:3: error: ambiguous inst...
by TeeEmCee
May 04, 2020 15:50
Forum: Beginners
Topic: Could I use fbc -gen gcc with clang as the compiler?
Replies: 21
Views: 897

Re: Could I use fbc -gen gcc with clang as the compiler?

I agree, clang support shouldn't be hard. It's throwing a bunch of warnings about declaring memcpy, fopen, etc. instead of including the system header files, but just disabling those warnings may be unavoidable. Indeed it's the only way that work, even for compiling manually with gcc. If I understoo...

Go to advanced search