Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

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

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.