|
| devas (6) | |
| 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) | |
| Yes - google extern "C" | |
| Bazzy (3164) | |
| Also look for the __cplusplus macro | |
| helios (4790) | |
| http://www.parashift.com/c++-faq-lite/mixing-c-and-cpp.html | |
| devas (6) | |
| Thank you | |
Registered users can post in this forum.
