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 C linkage for C++ support #66

Merged
merged 5 commits into from
Jan 18, 2024
Merged

Add C linkage for C++ support #66

merged 5 commits into from
Jan 18, 2024

Conversation

ericbj29
Copy link
Contributor

Add C linkage for C++ support

Description

Updates the project so that linking works when using a C++.
This is achieved by conditionally adding an extern "C" wrapper if the project is being built using C++.

Test Steps

  • Ran idf.py build to ensure the project still builds.
  • Changed main.cto main.cpp. Then ran idf.py build to ensure the project builds.

Checklist:

  • I have tested my changes. No regression in existing tests.
  • I have modified and/or added unit-tests to cover the code changes in this Pull Request.

Related Issue

#65

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@ericbj29 ericbj29 requested a review from a team as a code owner January 16, 2024 22:13
@ericbj29 ericbj29 linked an issue Jan 16, 2024 that may be closed by this pull request
@ericbj29
Copy link
Contributor Author

/bot run formatting

@ericbj29
Copy link
Contributor Author

/bot run formatting

@ericbj29 ericbj29 merged commit b8cd609 into FreeRTOS:main Jan 18, 2024
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.

[BUG] Project fails to link when compiled as C++
4 participants