Talk:Getting FreeBASIC

From OHRRPGCE-Wiki
(Redirected from Talk:Getting FreeBasic)
Jump to navigation Jump to search

The Mad Cacti: Hang on! We still support FB0.15, don't we? I haven't compiled with it for a couple of weeks, so I don't know if anyone broke support or not. I guess we don't need it anymore, though the FB0.15 version interprets faster

Also, we don't actually support FB0.17 yet, not if GOSUBs don't work properly (Bug 422)

Mike C.: The gosub issue in 422, thus far, has only affected two (related) procedures. I say that we officially support it. Any other issues we find that are affected by that, we'll fix on a case-by-case basis. I've personally gone over the kludge a few times, and I see nothing wrong with it.

0.18.0 crashes[edit]

The Mad Cacti: Uh... which reproducible crashes are you talking about?

Bob the Hamster: Oh, sorry I didn't clarify. Build the latest SVN with 0.18.0 on Linux, and the play the latest version of Vikings of Midgard. If you try to walk out of Valhalla, you will crash with a segmentation fault, which I backtraced to the GOSUB workaround macro thingy. No such crash occurs in 0.18.5

fbc 0.90 mingw[edit]

Bob the Hamster (talk) 13:21, 9 August 2013 (PDT): I still can't get the mingw version of fbc 0.90 to work. By removing the other version of fbc, and manually fixing the PATH I got it to compile, but now it fails at link time saying that SDL is not found.

TMC (talk): Oh, I have the SDL dev libraries and headers extracted in my MinGW folder. You probably don't. The Windows FB 0.21 package (the previous FB version I was using on Windows!) included libSDL.dll.a (and SDL_mixer etc.) in its lib folder. I see that even the regular FB 0.90 and 0.90.1 packages no longer include those .a files, though they still have the headers. I guess that's probably a packaging error? There were other missing libraries which were added for 0.90.1.

Anyway, the mingw package intentionally does not include any non-FB libraries at all; only headers. You need to install the SDL libraries in your MinGW folder.

I had also noticed that xml2reload wasn't compiling for me before libxml2 wasn't found, but I didn't realise the reason.

TMC (talk): Oh, it seems that all non-core libraries have been out of the FB Windows package, and should be downloaded separately here. Leaving 172 core libraries! Looks like most of these are win32 or mingw libraries. Anyway, SDL still isn't listed on that download page. I wonder why some libraries are and other aren't.

Postscript: I committed the required file to SVN; requiring separate installation of it would be silly.