[vlc-devel] vlc compiling in msvc++ v6
    Brian Robb 
    vascy at hotmail.com
       
    Sat Sep  3 17:09:29 CEST 2005
    
    
  
Hello.
I've managed to get vlc to compile in msvc++ v6.
Here are the changes I had to make:
-----------------------------------------------------------
libvlc:
In control.h you have:
mediacontrol_Position*
mediacontrol_get_media_position( mediacontrol_Instance *self,
                                mediacontrol_PositionOrigin an_origin,
                                mediacontrol_PositionKey a_key,
                                mediacontrol_Exception *exception )
And in control.c you have:
mediacontrol_Position*
mediacontrol_get_media_position( mediacontrol_Instance *self,
                                const mediacontrol_PositionOrigin an_origin,
                                const mediacontrol_PositionKey a_key,
                                mediacontrol_Exception *exception )
I had to add the missing const declarations (of an_origin and a_key)  into 
control.h
So control.h becomes:
mediacontrol_Position*
mediacontrol_get_media_position( mediacontrol_Instance *self,
                                const  mediacontrol_PositionOrigin 
an_origin,
                                const mediacontrol_PositionKey a_key,
                                mediacontrol_Exception *exception )
-----------------------------------------------------------
The next problem is msvc v6 doesn't support long long types.
libvlc:
vlc/control.h and control/util.c files have "long long" declarations in 
them...
Solution: Check for #ifdef CC_HAS_LONG_LONG and make a LONG_LONG type...
e.g.
#ifdef CC_HAS_LONG_LONG
#define LONG_LONG long long
#else
#define LONG_LONG __int64
#endif
Then change everywhere where it says long long to LONG_LONG
(I had to make other changes aswell, but I'm not as sure of those changes so 
I'll leave them out.)
:)
-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html
    
    
More information about the vlc-devel
mailing list