E
E
Eugene2015-01-14 10:14:00
Programming
Eugene, 2015-01-14 10:14:00

How to cross C++ and C code?

I have a large C project, I need to add a C++ project to
it. How can I do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Armenian Radio, 2015-01-14
@Eugeny1987

C++ is backwards compatible with C. Some C sources can simply be compiled with a C++ compiler.
In more complex cases, well-written header files (using extern "C" {}) should allow C and C++ linking.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question