Musepack Forums  

Go Back   Musepack Forums > Main > Development

Reply
 
Thread Tools Search this Thread Display Modes
Old 04 February 2005, 10:31 pm   #1
spoon
Member
 
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
Old 05 February 2005, 01:14 am   #2
xmixahlx
Musepack developer
 
xmixahlx's Avatar
 
Join Date: Nov 2004
Location: seattle, washington usa
Posts: 111
Send a message via ICQ to xmixahlx
Default

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
__________________
-xmixahlx, the one they call "mike"
http://xmixahlx.com -|- http://rarewares.org
xmixahlx is offline   Reply With Quote
Old 09 February 2005, 12:18 am   #3
kuniklo
Senior Member
 
kuniklo's Avatar
 
Join Date: Aug 2004
Location: Emeryville, CA
Posts: 52
Default 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.
kuniklo is offline   Reply With Quote
Old 25 February 2005, 08:29 pm   #4
spoon
Member
 
Join Date: Aug 2004
Posts: 2
Default

thanks
spoon is offline   Reply With Quote
Reply

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:26 am.


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