> 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)
|