lipnitsk / libcue

CUE Sheet Parser Library
Other
60 stars 16 forks source link

Functions do not work on c++ #53

Open GoldenStarGamer opened 5 months ago

GoldenStarGamer commented 5 months ago

As I was trying to use this in cisual studio on a windows computer, I installed it trough msys2 mingw64 and the bottom part of libcue.h where functions get declared is all errors, wherever CUE_EXPORT gets called it's an error, and I cant use those functions, for example, CUE_EXPORT Cd* cue_parse_file(FILE*); is an error: this declaration has no storage class or type specifier.

GoldenStarGamer commented 5 months ago

you f«can fix it by changing the macro "CUE_EXPORT" to "#define CUE_EXPORT __declspec(dllexport)" for windows