Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question