[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [CPROG] c biblioteker i c++



Hej Brian

Brian Josefsen wrote:
Hej

Jeg sidder og roder rundt i C++, og fra tid til anden falder man over et
eller andet smart bibliotek som man gerne vil bruge, men så er det lavet
til C. Er der nogen generel måde man skal få det til at spille, eller er
det dumt at gøre? Skal man tage til takke med hvad man kan finde ?

Ja. Jeg skal f.eks. bruge libmpeg2 i en C++ app. Headerne til libmpeg2 skal inkluderes på følgende måde

#ifdef __cplusplus
extern "C" {
#endif
#include <mpeg2dec/mpeg2.h>
#ifdef __cplusplus
}
#endif

Der ud over skal jeg så linke det pågældende lib på sædvanlig vis.

--PMM

----------------------------------------------------------------
Peter Maersk-Moller
----------------------------------------------------------------
Ogg/Vorbis support for MPEG4IP. YUV12, XviD, AVI and MP4 support
for libmpeg2. See http://www.maersk-moller.net/projects/
----------------------------------------------------------------



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:09 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *