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

Remove static declaration of the dummy callback bundle from header #12

Merged
merged 1 commit into from
May 5, 2016
Merged

Remove static declaration of the dummy callback bundle from header #12

merged 1 commit into from
May 5, 2016

Conversation

cedric-d
Copy link
Contributor

@cedric-d cedric-d commented May 2, 2016

With dummy callback bundle declared as static variable in the header file, some projects do not link with the static library due to cbor_null_*_callback symbols being unresolved.

Declaring the bundle extern in the header file and defining it in the source file resolved this problem.

@cedric-d
Copy link
Contributor Author

cedric-d commented May 4, 2016

For example the cbor library must be linked with a program as soon as one of its source source file includes cbor.h, even if no function is used.

@PJK
Copy link
Owner

PJK commented May 5, 2016

Thank you Cedric!

@PJK PJK merged commit f925df9 into PJK:master May 5, 2016
PJK added a commit that referenced this pull request Jan 11, 2017
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