post  Mix C and C++

devas (6)   Link to this post
Hi,

i have a question. Is it possible to write a code that callable both from C and C++?

I want to write a logger which put some logs in a specific file and also i should call its functions from both C and C++.
guestgulkan (1037)   Link to this post
Yes - google extern "C"
Bazzy (3164)   Link to this post
Also look for the __cplusplus macro
helios (4790)   Link to this post
http://www.parashift.com/c++-faq-lite/mixing-c-and-cpp.html
devas (6)   Link to this post
Thank you

Registered users can post in this forum.