Search found 2423 matches

by srvaldez
Jun 28, 2020 16:07
Forum: Community Discussion
Topic: Mac OS X Support
Replies: 23
Views: 882

Re: Mac OS X Support

first, I recommend that you download the fbc source from https://github.com/rversteegen/fbc/tree/mac it has a number of patches specific to the Mac that are not in the official site second, try installing the gcc-9.2 from http://hpc.sourceforge.net/ not macports third try compiling with make FBFLAGS...
by srvaldez
Jun 28, 2020 14:19
Forum: Community Discussion
Topic: Mac OS X Support
Replies: 23
Views: 882

Re: Mac OS X Support

I ran into the same problem, don't remember how I managed to solve the issue, if you install gcc-9.2 from http://hpc.sourceforge.net/ it may solve your problem, note that I ran into permission problems trying to install gcc-9.2, I finally installed it by booting up from a different partition what ve...
by srvaldez
Jun 26, 2020 13:23
Forum: Linux
Topic: What is a good IDE for Freebasic on Linux?
Replies: 6
Views: 415

Re: What is a good IDE for Freebasic on Linux?

when I said that you have to save your FB code with a bas extension before you can compile, I was referring to the FBide feature that allows you to compile and run code that's in the editor without being saved to a file, FBide saves the code to a temp file, compiles and then executes the temp.exe, i...
by srvaldez
Jun 24, 2020 15:21
Forum: General
Topic: Print Using
Replies: 12
Views: 515

Re: Print Using

I would suggest includind crt.bi and use printf or sprintf instead
by srvaldez
Jun 24, 2020 15:18
Forum: General
Topic: warning: ... may be used uninitialized in this function [-Wmaybe-uninitialized]
Replies: 2
Views: 141

Re: warning: ... may be used uninitialized in this function [-Wmaybe-uninitialized]

I think that this happens with the newer gcc toolchains, what OS and what version of gcc are you using?
by srvaldez
Jun 24, 2020 15:15
Forum: Tips and Tricks
Topic: PHP-like associative arrays
Replies: 45
Views: 6385

Re: PHP-like associative arrays

@dodicat
would you explain why this is necessary?
type<udt1>.revamp(t()) 'must do
by srvaldez
Jun 24, 2020 12:39
Forum: Linux
Topic: What is a good IDE for Freebasic on Linux?
Replies: 6
Views: 415

Re: What is a good IDE for Freebasic on Linux?

Hi BristolBrick I use geany on linux, it works out of the box with Freebasic, there are a couple thing to keep in mind coming from FBide, there's no compile-and-run command, you must compile and then after a successful compile, run the program, also you must save your FB code with bas extension befo...
by srvaldez
Jun 23, 2020 16:33
Forum: Tips and Tricks
Topic: PHP-like associative arrays
Replies: 45
Views: 6385

Re: PHP-like associative arrays

dodicat wrote:Where can I get a complete assocarray.bi and hashmap.bi?

you can get all the files in the folder CoTGH at https://github.com/DotStarMoney/13C
however, null.bi just defines null if it's not defined

Code: Select all

#Ifndef NULL
#Define NULL 0
#EndIf

BTW dodicat, clever macros :-)
by srvaldez
Jun 22, 2020 10:50
Forum: Projects
Topic: Gas64 (no more use of gcc, only gas) WDS / LNX
Replies: 351
Views: 36699

Re: Gas64 (no more use of gcc, only gas) WDS / LNX

another one, in the following program if INTEGER is used then you get errors like untitled12.a64:2518: Error: operand type mismatch for `add' if you change INTEGER to __longint then it compiles OK but as soon as you press the return key at the program's input it crashes to be fair it also crashes if...
by srvaldez
Jun 22, 2020 10:28
Forum: Projects
Topic: Gas64 (no more use of gcc, only gas) WDS / LNX
Replies: 351
Views: 36699

Re: Gas64 (no more use of gcc, only gas) WDS / LNX

Hi SARG
I got you a new challenge, viewtopic.php?f=3&t=28636
by srvaldez
Jun 21, 2020 11:15
Forum: Tips and Tricks
Topic: PHP-like associative arrays
Replies: 45
Views: 6385

Re: PHP-like associative arrays

however Zamaster's hashmap encountered no collisions in this test it generates 456976 items, so it takes a while #include "hashmap.bi" dsm_HashMap_define(zstring, integer) using dsm dim as HashMap(zstring, integer) ArrayItemID Dim Shared ItemID As String Dim Shared As Integer Collisions=0,...
by srvaldez
Jun 21, 2020 10:29
Forum: Tips and Tricks
Topic: PHP-like associative arrays
Replies: 45
Views: 6385

Re: PHP-like associative arrays

hello Makoto WATANABE I don't follow your logic, but in the following test there are 16 collisions #Include "assocarray.bi" DefineAssocArrayType( Integer ) Dim Shared As IntegerArray ArrayItemID Dim Shared ItemID As String Dim Shared As Integer Collisions=0, Counter, i, j, k Counter = 0 Fo...
by srvaldez
Jun 20, 2020 17:12
Forum: Beginners
Topic: Is FreeBasic A Decent Alternative To VisualBasic 6?
Replies: 12
Views: 564

Re: Is FreeBasic A Decent Alternative To VisualBasic 6?

@BadLarry
if you want a cross-platform solution that has the functionality of VB6 then I recommend Lazarus, it's Pascal but it's GUI designer works similar to VB6
alternately, you could give QB64 + Inform a try
by srvaldez
Jun 20, 2020 16:55
Forum: Tips and Tricks
Topic: PHP-like associative arrays
Replies: 45
Views: 6385

Re: PHP-like associative arrays

@ShawnLG
your corrected assocarray.bi works without a flaw, thanks a million :-)

@Zamaster
thank you for visiting and thanks for the link, will try your code a bit later :-)
by srvaldez
Jun 19, 2020 14:15
Forum: Community Discussion
Topic: @paul doe re: fb-dictionary
Replies: 4
Views: 277

Re: @paul doe re: fb-dictionary

thanks again :-)

Go to advanced search