On Jul 10, 2007, at 2:28 PM, Philip Newton wrote:
On 7/10/07, Peter da Silva <[email protected]> wrote:
That means you can't depend on being able to write an include file that
can be included from C or C++.

I suspect your problems come from treating the two languages as compatible.

My problems come from having to call C functions from C++, which means pulling in C structures and C function definitions, which means pulling in C include files.

If you'd start treating them as different, only vaguely-related
languages, you might be better off. You wouldn't expect to be able to
use the same file in C and Java, would you, just because both are
curly-brace languages?

They're not call-compatible, C and C++ are.

Reply via email to