Search found 291 matches

by TeeEmCee
May 29, 2020 2:35
Forum: Linux
Topic: include not found
Replies: 3
Views: 169

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

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

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

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

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

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

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

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...
by TeeEmCee
May 04, 2020 15:39
Forum: Community Discussion
Topic: fbfrog is unmaintained, so what is the current supported tool to translate C header?
Replies: 8
Views: 332

Re: fbfrog is unmaintained, so what is the current supported tool to translate C header?

Failed in cases that it didn't need to? (E.g. IIRC it ignores some common GCC function attributes but not all that are safe to ignore)
by TeeEmCee
May 04, 2020 15:33
Forum: Community Discussion
Topic: FreeBASIC and C++ interop current status?
Replies: 15
Views: 582

Re: FreeBASIC and C++ interop current status?

Right. I jumped to the conclusion that total interoperability with a subset of C++ was the goal. But there are other reasons for doing name mangling in the same way, such as: it's sane to follow standards, be able to use the standard "c++filt" name demangling tool, or just being able to ca...
by TeeEmCee
May 04, 2020 15:08
Forum: Beginners
Topic: Could I use fbc -gen gcc with clang as the compiler?
Replies: 21
Views: 533

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

in 32-bit I had to pass -asm att to fbc otherwise clang would spit-out many errors related to fpu operand size not being specified. I'm confused... did you pass -r to fbc? If so, it should produce a .c file only, and "-asm att" would be ignored. Must try MacOS and Android. I haven't tried...
by TeeEmCee
May 04, 2020 14:43
Forum: Community Discussion
Topic: anyone still in contact with cha0s?
Replies: 2
Views: 153

Re: anyone still in contact with cha0s?

cha0s is in the FreeBASIC Discord server right now, last spoke yesterday.
by TeeEmCee
May 04, 2020 12:18
Forum: Beginners
Topic: Could I use fbc -gen gcc with clang as the compiler?
Replies: 21
Views: 533

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

Sorry for the confusion, I meant Iedited my post to use the simpler method (which is to use fbc to link instead of clang).
by TeeEmCee
May 04, 2020 11:55
Forum: Community Discussion
Topic: fbfrog is unmaintained, so what is the current supported tool to translate C header?
Replies: 8
Views: 332

Re: fbfrog is unmaintained, so what is the current supported tool to translate C header?

fbfrog is an amazing tool. Who cares if it's unmaintained if it's already close to perfect? C evolves very slowly, so fbfrog doesn't need to change any faster.

I do release fbfrog has a todo list, no piece of software is complete.
by TeeEmCee
May 04, 2020 10:47
Forum: Beginners
Topic: Could I use fbc -gen gcc with clang as the compiler?
Replies: 21
Views: 533

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

fbc doesn't support clang out of the box when using -gen gcc yet, but I think it's not a lot of work to make this work. You can however manually compile the C produced from fbc using clang. Not long ago I also tried to get -gen gcc working using Visual C++ instead of GCC. That's far more work. (gcc ...

Go to advanced search