Search found 110 matches

by N3trunn3r
Aug 25, 2023 14:55
Forum: Projects
Topic: MultiPut[DES],[x],[y],SRC,[xScale],[yScale],[Rotate],[Trans]
Replies: 63
Views: 17420

Re: MultiPut[DES],[x],[y],SRC,[xScale],[yScale],[Rotate],[Trans]

This does not seem to work anymore in 1.10.0 (x64 Linux):
multiput_alpha.bas(24) error 4: Duplicated definition in 'Byval Param As Any Ptr = 0)'
by N3trunn3r
Jul 20, 2022 10:27
Forum: Libraries & Headers
Topic: QB, PLAY statement and library
Replies: 22
Views: 5292

Re: QB, PLAY statement and library

Thanks angros, that sounds like a good solution. I'll try some experimentation.

Just tried to compile ExtLibsfx under DOS, but get this error:
I use DosBox-X to compile because it supports long filenames.
Image
by N3trunn3r
Jul 19, 2022 22:16
Forum: Libraries & Headers
Topic: QB, PLAY statement and library
Replies: 22
Views: 5292

Re: QB, PLAY statement and library

@N3trunn3r Glad it works now. Is the sound quality good enough? Sounds good on Win and Linux :) midi, wav, play, all works fine, testing for DOS soon... But the main reason to use fbsfx was actually to be able to recompile old QB games that use the "PLAY" statement. fbsfx does not seem to...
by N3trunn3r
Jul 19, 2022 20:33
Forum: Libraries & Headers
Topic: QB, PLAY statement and library
Replies: 22
Views: 5292

Re: QB, PLAY statement and library

Do not worry about the "warning 20(2): Object files or libraries with mixed multithreading (-mt) options, ./libfbsfx.a": it only means that the library is multithreading (it uses a thread to activate the midi player), and the rest of the code is not, so it might cause errors if some subro...
by N3trunn3r
Jul 19, 2022 14:34
Forum: Libraries & Headers
Topic: QB, PLAY statement and library
Replies: 22
Views: 5292

Re: QB, PLAY statement and library

Can't compile either under Debian 11 x64. FreeBASIC Compiler - Version 1.07.1 PLAY from freebasic-portal.de fails fbc Menuett_Krieger.bas Menuett_Krieger.c: In function ‘SOUND_DOS_LIN’: Menuett_Krieger.c:59:2: warning: listing the stack pointer register ‘rsp’ in a clobber list is deprecated [-Wdepre...
by N3trunn3r
Jul 19, 2022 0:25
Forum: Libraries & Headers
Topic: QB, PLAY statement and library
Replies: 22
Views: 5292

QB, PLAY statement and library

I have some old QB code and would like to compile it on modern systems. But the PLAY statement is missing. The FB manual states: PC Speaker commands no longer function: Any references to SOUND or PLAY statements will result in an error message. There is a third party library available to emulate thi...
by N3trunn3r
Jul 18, 2022 23:16
Forum: Windows
Topic: libcairo.dll.a for x64 ?
Replies: 14
Views: 2138

Re: libcairo.dll.a for x64 ?

Here is the dll and an import library file https://www.mediafire.com/file/7zg0w4190x5ncht/Cairo64bitsdll.zip/file Thanks, works just fine! :) Where does the cairo.dll comes from? I am much happier to get dlls from a single source, rather than have to deal with different files and versions. For x32 ...
by N3trunn3r
Jul 06, 2022 11:22
Forum: Windows
Topic: libcairo.dll.a for x64 ?
Replies: 14
Views: 2138

libcairo.dll.a for x64 ?

Can someone provide a static 64-bit library for Cairo?
But now i wonder if it is even possible to build a x64 library for Cairo...

If not, can I somehow use x32 libraries with fbc x64?
by N3trunn3r
Jul 03, 2022 14:48
Forum: DOS
Topic: DOSBox Staging, SLEEP crashes with SIGSEGV
Replies: 5
Views: 3657

Re: DOSBox Staging, SLEEP crashes with SIGSEGV

Did some more testing:
gdb gives:
Program recived signal SIGSEGV, Segmantation fault.
0x000099fb in __dpmi_int ()
by N3trunn3r
Jul 03, 2022 10:39
Forum: DOS
Topic: DOSBox Staging, SLEEP crashes with SIGSEGV
Replies: 5
Views: 3657

Re: DOSBox Staging, SLEEP crashes with SIGSEGV

I only get errors in DOSBox Staging (version 0.78.1), and I have no issues in ordinary DOSBox (version 0.74-3), get no errors there whatsoever. That you got issues with ordinary DOSBox (version 0.74-3) only adds to my confusion :P But that could mean that there might be a bug in DOSBox. And not to c...
by N3trunn3r
Jul 02, 2022 14:41
Forum: DOS
Topic: DOSBox Staging, SLEEP crashes with SIGSEGV
Replies: 5
Views: 3657

DOSBox Staging, SLEEP crashes with SIGSEGV

Compiling a program that only contains: sleep or sleep 500 Crashes in DOSBox Staging with SIGSEGV. But compiling/running sleep 1, 1 seems to work just fine. I also tried to compile/run DOS/isrtimer.bas, DOS/textbuff.bas and graphics/qbsprite.bas isrtimer.bas crashes in the same manner (SIGSEGV). tex...
by N3trunn3r
May 16, 2021 10:22
Forum: Linux
Topic: malloc(): invalid size (unsorted)
Replies: 20
Views: 33715

Re: malloc(): invalid size (unsorted)

Lot's of great advice! Thanks to everyone :) , I found the error.
by N3trunn3r
May 08, 2021 19:15
Forum: Linux
Topic: malloc(): invalid size (unsorted)
Replies: 20
Views: 33715

malloc(): invalid size (unsorted)

I am trying to compile an old game I wrote for Windows 7 several years ago. It works fine on Windows but when I try to compile under Debian 10 x64 i get: malloc(): invalid size (unsorted) I could put in some print statement to find the culprit but I would like to take this opportunity to learn somet...
by N3trunn3r
Jul 27, 2020 16:41
Forum: Beginners
Topic: Suspicious logic operation, mixed boolean and non-boolean
Replies: 2
Views: 817

Suspicious logic operation, mixed boolean and non-boolean

Code: Select all

if any_integer = 4 or any_integer = 5 or key_left = true or key_right = true then
Will not compile: Suspicious logic operation, mixed boolean and non-boolean

What is the best solution here? A one-liner would be good.
by N3trunn3r
Jul 26, 2020 19:16
Forum: DOS
Topic: Alpha channel PNGs under DOS?
Replies: 3
Views: 2310

Re: Alpha channel PNGs under DOS?

Ah right, FBImage, forgot all about it. Thank you! Works nicely for now.
Doubt though it will run under dos. Only comes with static Linux and Win libs, 32/64-bit.