Do BB4W and BBCSDL 2.0 coexist on the same computer?

Here you can talk about anything related to BBC BASIC, not covered in another category
artfizz
Posts: 21
Joined: Wed 11 Dec 2024, 17:15

Do BB4W and BBCSDL 2.0 coexist on the same computer?

Post by artfizz »

After installing and compiling with BBCSDL 2.0, when I try to compile any program using BB4W, I get a compile error reported by BB4W:
Cannot open file C:\Program Files (x86)\BBC Basic for Windows\lib\..\SDL2.dll

(I'm running 64-bit Windows 11; BB4W version 6.15a; BBCSDL 2.0 version 1.40a).

The issue seems to be that BB4W is embedded files such as: bbcsdl.exe, SDL2_net.dll, SDL2_tff.dll, SDL2.dll
When I remove these from the list of embedded files, compilation succeeds.
Richard Russell
Posts: 272
Joined: Tue 18 Jun 2024, 09:32

Re: Do BB4W and BBCSDL 2.0 coexist on the same computer?

Post by Richard Russell »

artfizz wrote: Tue 17 Dec 2024, 12:13 The issue seems to be that BB4W is embedded files such as: bbcsdl.exe, SDL2_net.dll, SDL2_tff.dll, SDL2.dll
The only plausible cause of this that I can think of is that there is already an executable (created by BBCSDL) in the directory where BB4W is going to create its executable. Make sure you delete (or move) any executable created by BBCSDL first.

Alternatively, use REM!Embed compiler directives to specify explicitly which files you want to be embedded.

The answer to the question posed in the subject line - "Do BB4W and BBCSDL coexist on the same computer?" - is yes, they coexist very nicely, and that's how I use them here.
artfizz
Posts: 21
Joined: Wed 11 Dec 2024, 17:15

Re: Do BB4W and BBCSDL 2.0 coexist on the same computer?

Post by artfizz »

Richard Russell wrote:
The only plausible cause of this that I can think of is that there is already an executable (created by BBCSDL) in the directory where BB4W is going to create its executable. Make sure you delete (or move) any executable created by BBCSDL first.
Deleting the executable created by BBCSDL sorted out the issue for me.
Thank you.