Re: Error in header files in C++

"Peter M. Groen" <[email protected]>
Newsgroups gmane.comp.video.videolan.libdvbpsi.devel
Message-ID <200609200030.34553.pgroen__26443.376663565$1158704995$gmane$org@osdev.nl>
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  : [email protected]

-- 
This is the libdvbpsi-devel mailing-list, see http://developers.videolan.org/
To unsubscribe, go to: http://developers.videolan.org/lists.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.