Skip to content

Don't put extern "C" around includes#15

Merged
svire-at merged 1 commit intoShiegeChan:mainfrom
456Xander:fix_extern_c
Apr 24, 2025
Merged

Don't put extern "C" around includes#15
svire-at merged 1 commit intoShiegeChan:mainfrom
456Xander:fix_extern_c

Conversation

@456Xander
Copy link

Only put extern "C" around the prototypes of functions defined within each header.

If the first inclusion of a C++ library happens within an extern "C" block, it can cause linker errors as the code now references an unmangled symbol, but the real symbol is mangled by c++.

Only put extern "C" around the prototypes of functions defined within
each header.

If the first inclusion of a C++ library happens within an
extern "C" block, it can cause linker errors as the code now references
an unmangled symbol, but the real symbol is mangled by c++.
@fanfare-ff fanfare-ff requested a review from svire-at April 23, 2025 18:31
@svire-at svire-at merged commit a8c40a6 into ShiegeChan:main Apr 24, 2025
thodob added a commit to thodob/SensEdu that referenced this pull request Aug 11, 2025
Don't put extern "C" around includes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants