Musepack Forums  

Go Back   Musepack Forums > Main > Development

Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 04 February 2005, 10:31 pm   #1
Join Date: Aug 2004
Posts: 2
Default 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 )
spoon is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT. The time now is 07:18 pm.

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