Musepack Forums

Musepack Forums (https://forum.musepack.net/index.php)
-   Development (https://forum.musepack.net/forumdisplay.php?f=11)
-   -   libmusepack and Visual C++ v6 (https://forum.musepack.net/showthread.php?t=135)

spoon 04 February 2005 10:31 pm

libmusepack and Visual C++ v6
 
Has anyone run into problems adding libmusepack to a vc v6 c++ project?

The problem seems to be around the typedef'ing of:

typedef unsigned char BOOL

in the microsoft compiler any .cpp files already have this defined, but not for the .c files (that are the lib files), the only way I could get a clean compile was a:

typedef unsigned char BOOLa

and replace all BOOL with BOOLa in the lib, a little hack. There was also a little problem of:

#include <math.h> being inside a:

#ifdef CPP
extern "C" {
#end if

as math.h on Visual C uses templates and this cannot work within an extern "C" {

-------------------------------
there are a few other little things needed to get it to compile (havn't tried to decode a .mpc yet, so hold your breath :) )
--------------------------------

Anyhow, very good work on the lib, my last decoder for dbpoweramp was a real nasty hack, the lib is a god send...(any chance of an encoding lib ;) )

xmixahlx 05 February 2005 01:14 am

well, i don't have any win32 compiling response

...but i too would like to see musepack go the way of flac/vorbis with:

encoding lib or both in a monolithic lib
decoding lib /

single frontend

that's been discussed a lot here and i think everyone is on the same page (as above)...


later

kuniklo 09 February 2005 12:18 am

Re: libmusepack and Visual C++ v6
 
Quote:

Has anyone run into problems adding libmusepack to a vc v6 c++ project?

The problem seems to be around the typedef'ing of:

typedef unsigned char BOOL
If you want to grab the sources out of svn this has been changed to mpc_bool_t, which shouldn't cause any problems.

spoon 25 February 2005 08:29 pm

thanks


All times are GMT. The time now is 07:35 am.

Powered by vBulletin® Version 3.8.11 Beta 2
Copyright ©2000 - 2020, vBulletin Solutions Inc.