Search found 1412 matches

by St_W
Oct 15, 2018 16:45
Forum: General
Topic: Declaring a Macro as global
Replies: 8
Views: 184

Re: Declaring a Macro as global

Macros are basically simple text replacement done at compile time. So they aren't shared among modules.

Simply put them in a separate file and include that in every module.
by St_W
Oct 15, 2018 16:40
Forum: Community Discussion
Topic: Speed of FreeBasic
Replies: 62
Views: 4283

Re: Speed of FreeBasic

That most likely means you're missing cc1.exe, which is the C compiler. You have to put it in a special folder relative to gcc.exe so that it is found. The folder structure of the gcc addon for fb should be fine, so keep it and do not mess around.
by St_W
Oct 10, 2018 11:26
Forum: Beginners
Topic: It's a long way
Replies: 25
Views: 1937

Re: It's a long way

Maybe you should just have a look at the existing networking libraries for FreeBasic. There are quite some of them, just have a look on this forums. And there are even examples distributed with the compiler. libuv works on Windows, see https://github.com/libuv/libuv/blob/v1.x/SUPPORTED_PLATFORMS.md ...
by St_W
Oct 09, 2018 14:01
Forum: Beginners
Topic: It's a long way
Replies: 25
Views: 1937

Re: It's a long way

I'm looking for some working exemples of network programming with FB. Can / or how could (wrapper?) libuv (c lib) be used with fb under Linux ? Wich API would be best under Windows ? Basically any C library can be used with FB. Have a look into the manual for binding creation: https://freebasic.net...
by St_W
Oct 08, 2018 2:07
Forum: Community Discussion
Topic: Would anyone find a FreeBASIC vs JavaScript side-by-side series useful (+is it allowed here)?
Replies: 24
Views: 896

Re: Would a FreeBASIC vs JavaScript series be useful / allowed here?

Whoa ... tbh I couldn't imagine that my post (you're referring to my post, do you?) triggered such a reaction and I didn't intend to do so. I did not call the JS thread "irrelevant" - at least that's not what I meant - I just wanted to point out that comparing FB with JS will just result i...
by St_W
Oct 08, 2018 0:54
Forum: Community Discussion
Topic: Like FreeBASIC? Try JavaScript
Replies: 41
Views: 1829

Re: Try JavaScript

IMHO this discussion is a bit pointless, especially when considering that this is a FreeBasic forum, because this topic could be also discussed for so many other modern programming languages with probably similar results. The thing is that (Free)Basic is a niche language with many implications: - it...
by St_W
Oct 07, 2018 15:40
Forum: Libraries
Topic: fbsound 1.0 Win/Lin 32/64-bit (wav mp3 ogg mod it xm s3m)
Replies: 240
Views: 51021

Re: fbsound 1.0 Win/Lin 32/64-bit (wav mp3 ogg mod it xm s3m)

@coderJeff: I ran into a structure alignment issue when trying to compile fbsound using gcc a while ago; fbc patch: https://github.com/swurzinger/fbc/commit/d73294013def55804bb7f3dc28a5397d60a95b71 You mentioned that it were a problem that libaries are compiled with different exception handling mech...
by St_W
Oct 06, 2018 11:50
Forum: Community Discussion
Topic: GIT help
Replies: 2
Views: 164

Re: GIT help

The important thing to keep in mind when using Git is that it's a distributed VCS. That means you can commit multiple times, but the commits are only performed on your local repository. You need to explicitly push changes to another repository (e.g. hosted on GitHub; but it could be just located on ...
by St_W
Oct 06, 2018 11:18
Forum: Windows
Topic: gcc 5.2 vs gcc 8.1
Replies: 64
Views: 2535

Re: gcc 5.2 vs gcc 8.1

"F:\WinFBE_Suite\FreeBASIC-1.06.0\bin\libexec\gcc\cc1.exe" [...] In other words, the same cc1.exe was being used by both 32-bit and 64-bit. [...] I don't think that we fully understand the relationship between gcc.exe and cc1.exe. I tried to explain where gcc.exe looks for cc1.exe here: h...
by St_W
Oct 05, 2018 8:03
Forum: General
Topic: minwin10.dll missing ?
Replies: 1
Views: 103

Re: minwin10.dll missing ?

Are you sure that it shouldn't be "mingwm10.dll" instead?

If so, look into your MinGW.org (not to be confused with mingw-w64) installation's "bin" directory.
by St_W
Oct 05, 2018 7:54
Forum: Windows
Topic: gcc 5.2 vs gcc 8.1
Replies: 64
Views: 2535

Re: gcc 5.2 vs gcc 8.1

Is it possible to have a 'dodgy' 64-bit build? We cannot expect -O3 to always work but the first other source code balking cannot be right. I have -O3 working on 'tiddler' pieces of code. The build configuration is analogous to the other win64 builds and I didn't spot any issues after quickly revie...
by St_W
Oct 04, 2018 18:37
Forum: Windows
Topic: gcc 5.2 vs gcc 8.1
Replies: 64
Views: 2535

Re: gcc 5.2 vs gcc 8.1

I definitely cannot test 7.3 32-bit because of the missing libexec folder. Copy & paste issue in the build script. Fixed it and uploaded a new build fbc_win32_gcc730_0005_2018-10-04.zip http://users.freebasic-portal.de/stw/builds/_custom/gcc730/ cc1.exe paths relative to gcc.exe: 32-bit: ..\i68...
by St_W
Oct 04, 2018 13:15
Forum: Community Discussion
Topic: Wiindows 10
Replies: 8
Views: 407

Re: Wiindows 10

My laptop (ASUS) is quite new, with a core i7-7500U, 6 GB, but only a HDD 1TB (access time penalizing). I can already see this slow access at each startup when the PC runs at 100% on its hard drive for a little more than 5 minutes. I'd recommend to either add (if there's a free M.2 or SATA slot) a ...
by St_W
Oct 03, 2018 9:51
Forum: Beginners
Topic: playing sounds with fmod
Replies: 13
Views: 1561

Re: playing sounds with fmod

You need to stop playback on the channel, passing the sample data (mysound in your case) does not make sense. It is the same channel you start playback on with fsound_playsound(channel, samples)
by St_W
Oct 03, 2018 7:29
Forum: Windows
Topic: gcc 5.2 vs gcc 8.1
Replies: 64
Views: 2535

Re: gcc 5.2 vs gcc 8.1

I'm not totally happy with the gcc backend being the default one either, but it's the best we can get for now. As I've already mentioned above the backend shouldn't be something the user has to care about, it should be compiler-internal. I'd prefer the LLVM backend because it would both allow optimi...

Go to advanced search