Why is the linker giving errors for C/C++ functions being called from C++/C functions?

0
Posted

Why is the linker giving errors for C/C++ functions being called from C++/C functions?

0

If you didn’t get your extern C right, you’ll sometimes get linker errors rather than compiler errors. This is due to the fact that C++ compilers usually “mangle” function names (e.g., to support function overloading) differently than C compilers. See the previous two FAQs on how to use extern C.

Related Questions