Error in header files in C++

Peter M. Groen pgroen at osdev.nl
Wed Sep 20 00:30:34 CEST 2006


On Tuesday 19 September 2006 17:02, Lionel Flandrin wrote:
> There's a possible error in libdvbpsi header files:
>
> #ifdef __cplusplus
> };
> #endif
>
> doesn't compile with g++ 3.4.4
>
> /usr/local/include/dvbpsi/demux.h:175: error: extra `;'
>
> There's the same problem in all dvbpsi/*.h files.
>
> I removed the semicolon and it worked perfectly (I can't see any
> reason for a semicolon here anyway)
>
> --
> Simias


This should be a hint ;)

#ifdef __cplusplus

Classes are ended with a semicolon. Or you'll discover some other compiler 
errors like : "double declaration of....." etc..
-- 
Peter M. Groen
Open Systems Development
Klipperwerf 12
2317 DZ  Leiden
T  : +31-(0)71-5216317
M  : +31-(0)6-29563390
E  : pgroen at osdev.nl

-- 
This is the libdvbpsi-devel mailing-list, see http://developers.videolan.org/
To unsubscribe, go to: http://developers.videolan.org/lists.html



More information about the libdvbpsi-devel mailing list