[Qt-interest] C code in QT use queue in Class

Pavel Koshevoy pavel at aragog.com
Tue Aug 4 18:30:35 CEST 2009


Andreas Pakulat wrote:
> On 04.08.09 09:08:29, Pavel Koshevoy wrote:
>   
>> You should be able to use any C code with C++ (nothing to do with Qt 
>> really).
>>     
>
> Actually thats wrong, there are few subtle differences between C and C++
> that make it possible to write C code that doesn't compile with a C++
> compiler.
>
> Andreas
>
>   
Such as using the class keyword in C code -- I've seen that before.  As 
I said, if you can't include the C header in a C++ file for some strange 
reason -- write a thin wrapper to hide the offending code.  You will 
still be able to link against the C library.

    Pavel.




More information about the Qt-interest-old mailing list