Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add extern "C" guards #331

Merged
merged 1 commit into from
Jul 6, 2021
Merged

Conversation

easyaspi314
Copy link
Contributor

The year is 2021. All C libraries are expected to wrap their headers with extern "C" so they can be used from C++. It is literally 6 lines and it saves hundreds of frustrating linker errors.

Fixes #63.

The year is 2021. All C libraries are _expected_ to wrap their headers
with extern "C" so they can be used from C++. It is literally 6 lines
and it saves hundreds of frustrating linker errors.

Fixes jordansissel#63.
@jordansissel jordansissel merged commit 4be1a48 into jordansissel:master Jul 6, 2021
@jordansissel
Copy link
Owner

Thanks for this improvement! I’m sure lots of C++ users will be happy with this change :)

buldi pushed a commit to buldi/xdotool that referenced this pull request Apr 23, 2022
The year is 2021. All C libraries are _expected_ to wrap their headers
with extern "C" so they can be used from C++. It is literally 6 lines
and it saves hundreds of frustrating linker errors.

Fixes jordansissel#63.
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.

"undefined reference to" while trying to use "libxdo".
3 participants