TIP: Click on subject to list as thread! ANSI
echo: cbm
to: ALL
from: DANIEL ENGLAND
date: 2017-08-15 15:01:00
subject: Re: New SID to MIDI conve

> I'll try LibSIDPlay.dll next.

Okay, got that to work as well.  The command-line was:

g++ -shared -std=c++11 -I src -I src/dump -I src/c64 -I src/c64/Banks -I
src/c64/CIA -I src/c64/VIC_II -I src/c64/CPU -I src/sidt
une -I src/utils/MD5 -Wp,-DLIBSIDPLAY_EXPORTS LibSIDPlay.cpp src/*.cpp
src/dump/*.cpp src/c64/*.cpp src/c64/CIA/*.cpp src/c64/VIC_I
I/*.cpp src/c64/CPU/*.cpp src/sidtune/*.cpp src/utils/MD5/*.cpp -o
LibSIDPlay.dll


Hideous, I know.  Interesting that not all of the files are required, though. 
I got some errors about static initialisations so had to include the -std=c++11
switch but then also got some warnings about auto_ptr being deprecated.  I hate
C/C++, did I 
mention? 

Anyway, again the header was changed with the following:

#ifdef LIBSIDPLAY_EXPORTS 
#ifdef _MSC_VER
#define LIBSIDPLAY_API __declspec(dllexport)
#else
#define LIBSIDPLAY_API __attribute__((__visibility__("default")))
#endif
#else
#ifdef _MSC_VER
#define LIBSIDPLAY_API __declspec(dllimport)
#else
#define LIBSIDPLAY_API
#endif
#endif


I'll try porting the code to FPC/Lazarus again and see if I still have issues
with the LZMA units.  This may take some time.

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.