Search found 902 matches

by paul doe
Nov 13, 2019 22:41
Forum: General
Topic: FB-1.07.1-gcc-6.4
Replies: 19
Views: 279

Re: FB-1.07.1-gcc-6.4

... A question, Paul: What is your overall impression of the gcc 8 branch compared with 5.2 from a purely objective perspective? It seems [to compile] slower than previous versions, but it is also true that it generates better code (not necessarily 'faster'). Updating fbc to use it is needed to 'ke...
by paul doe
Nov 13, 2019 22:07
Forum: Game Dev
Topic: Using Inkscape for game graphics
Replies: 7
Views: 145

Re: Using Inkscape for game graphics

I know, the " ;-) " was especially for you. Just checking your progress :-) Haha fair enough. I'm almost done, just being busy with other projects ATM (I also posted another keyboard handler like the one you 'assimilated' ;) This one is way better and more efficient (if a bit more 'heavy'...
by paul doe
Nov 13, 2019 21:41
Forum: Tips and Tricks
Topic: Multikey key release
Replies: 13
Views: 942

Re: Multikey key release

For the folks interested in these abstractions, I coded a better, more robust and efficient variant. You may find it here.
by paul doe
Nov 13, 2019 21:39
Forum: Game Dev
Topic: Yet Another Platformer
Replies: 11
Views: 356

Re: Yet Another Platformer

@sero: You might find this abstraction useful (I just finished coding it for another project). It is a keyboard handler, similar to multiKey() but more functional: #include once "fbgfx.bi" #define fmod( n, d ) _ ( cdbl( n ) - int( ( n ) / ( d ) ) * cdbl( d ) ) #define min( a, b ) _...
by paul doe
Nov 13, 2019 21:22
Forum: Tips and Tricks
Topic: SXML (Simple XML parser)
Replies: 11
Views: 5206

Re: SXML (Simple XML parser)

Just a small update: This little parser has been superseded by another one (it is part of a framework now). For now it only reads Xml, but I'll code a writer as soon as I can spare the time (not that writing Xml is such a difficult work, alas; but it will come in handy to implement serializable clas...
by paul doe
Nov 13, 2019 21:15
Forum: General
Topic: FB-1.07.1-gcc-6.4
Replies: 19
Views: 279

Re: FB-1.07.1-gcc-6.4

@David: interestingly enough, this only happens when compiling a shared lib with optimizations enabled, not with executables. I have a pretty sizable codebase for FreeBasic and all of it compiled flawlessly under the same switches in the Gcc 8 branch. Using -Ofast is merciless, though, and requires ...
by paul doe
Nov 13, 2019 21:07
Forum: Game Dev
Topic: Using Inkscape for game graphics
Replies: 7
Views: 145

Re: Using Inkscape for game graphics

... If only there was a library to read and render SVG directly in freeBASIC ;-) I'm currently working on one (uses Cairo; was developing it for the last FreeBasic Compo organized by Lachie), so you wishes might soon come true ;) It's almost fully functional (filters are not implemented) and can re...
by paul doe
Nov 13, 2019 20:47
Forum: General
Topic: Problem building shared library with Gcc 8
Replies: 3
Views: 138

Re: Problem building shared library with Gcc 8

Update: seems like compiling libs with optimizations is what's causing the problems in the Gcc 8 toolchain. As reported by srvaldez, neither the 5.x and the 6.x branches give any troubles. Didn't tested the 7.x yet.
by paul doe
Nov 13, 2019 20:43
Forum: Community Discussion
Topic: How to add new features? (syntax, user API)
Replies: 49
Views: 1605

Re: How to add new features? (syntax, user API)

The new feature ("#%" remove spaces in an argument, i.e. concatenate space separated parts) is in my Google drive: https://drive.google.com/open?id=1e7oP1msY4P1-6yRGGZIW-HRHp0G_HQQm. The folder "Macro" contains executables for win32/64, i removed the macro without brackets featu...
by paul doe
Nov 13, 2019 20:36
Forum: General
Topic: FB-1.07.1-gcc-6.4
Replies: 19
Views: 279

Re: FB-1.07.1-gcc-6.4

gcc-5.2 and gcc-6.4 don't have issues compiling with optimization, as far as I know. Indeed, it is optimizations that are causing the problems in the gcc 8 toolchain. As you point out, there are no problems with those older versions. Nevermind then. I'll just use the old trusty 5.2 until I can look...
by paul doe
Nov 12, 2019 21:36
Forum: General
Topic: FB-1.07.1-gcc-6.4
Replies: 19
Views: 279

Re: FB-1.07.1-gcc-6.4

yes, that works, however, optimization options seem to cause problems try paul doe's compile options fbc -s console -dll -export -gen gcc -Wc -Ofast "blah-dll.bas" granted that -s console is not needed to build a dll yes, that works, however, optimization options seem to cause problems Ye...
by paul doe
Nov 12, 2019 21:30
Forum: Game Dev
Topic: Yet Another Platformer
Replies: 11
Views: 356

Re: Yet Another Platformer

The reason I know of Abuse is because I had a demo of it on my old Macintosh computer back when it first came out. This game provided a keyboard + mouse combination that I'd never encountered before. ... Indeed, it was a novelty at that time (circa 1995). Along with the engine's lighting system. .....
by paul doe
Nov 12, 2019 21:11
Forum: Community Discussion
Topic: How to add new features? (syntax, user API)
Replies: 49
Views: 1605

Re: How to add new features? (syntax, user API)

I see! Yes, i can do that. Thanks, Juergen. Much appreciated. Say, some of the new macros you added are pretty cool, and have a lot of potential. I'll code some use cases and post them here (or, if you prefer, we can open a new thread specifically for your fork), so we can discuss them and their po...
by paul doe
Nov 12, 2019 21:01
Forum: General
Topic: Problem building shared library with Gcc 8
Replies: 3
Views: 138

Re: Problem building shared library with Gcc 8

hello paul doe I just downloaded FreeBASIC-1.07.1-win64-gcc-8.1.0 and compiling your example gives the error you describe. I had similar experiences before https://www.freebasic.net/forum/viewtopic.php?f=3&t=26973&p=251109&hilit=Warning%3A+.drectve#p251109 Hey, srvaldez. Thanks for the ...
by paul doe
Nov 11, 2019 21:22
Forum: General
Topic: Problem building shared library with Gcc 8
Replies: 3
Views: 138

Problem building shared library with Gcc 8

Testing the new 1.07.1 release, I came to the following issue, using the Gcc 8 toolchain: function _ createComponent alias "createComponent"( _ byref aComponentName as const string ) _ as any ptr export ? "Component " & aComponentName & " created." return( 0 ) e...

Go to advanced search