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

Use of undeclared identifier 'CBOR_BUFFER_GROWTH' #9

Closed
devinDevin opened this issue Oct 16, 2015 · 2 comments
Closed

Use of undeclared identifier 'CBOR_BUFFER_GROWTH' #9

devinDevin opened this issue Oct 16, 2015 · 2 comments

Comments

@devinDevin
Copy link

I'm now integrating libcbor library into my iOS project and I had all the source files included in the project. When I try to compile the library I got many errors:

  1. Use of undeclared identifier 'CBOR_BUFFER_GROWTH' in strings.c, maps.c etc.
  2. Too many arguments to function call: cbor_string_set_handle(item, handle, len)
    ...

many thanks for any suggestion.

@PJK
Copy link
Owner

PJK commented Dec 25, 2015

Hi @devinDevin, I cannot really tell without having the exact errors at hand, but it seems like you are trying to integrate the library by including the source code in your project.

That would definitely explain your first issue, since until v0.4, CBOR_BUFFER_GROWTH was only used for object compilation and was provided via compiler defines (-DCBOR_BUFFER_GROWTH). This is now fixed.

For the second issue, I don't see a good reason why that should happen. Could you please provide more info?

Thank you for reporting this, and sorry about the late response. 🎅

@PJK
Copy link
Owner

PJK commented Jan 4, 2017

Closing this since the CBOR_BUFFER_GROWTH has been resolved

@PJK PJK closed this as completed Jan 4, 2017
PJK added a commit that referenced this issue Jan 6, 2017
PJK added a commit that referenced this issue Jan 11, 2017
PJK added a commit that referenced this issue Sep 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants