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

Rebuilding... #6

Open
flintforge opened this issue Jul 19, 2018 · 2 comments · Fixed by #15
Open

Rebuilding... #6

flintforge opened this issue Jul 19, 2018 · 2 comments · Fixed by #15

Comments

@flintforge
Copy link

$ make
c-for-go -ccdefs vpx.yml
  processing vpx.yml ⠋[ERR] vpx/vpx-1.6.0/vpx_encoder.h:109:5: unexpected identifier size_t,
expected one of ['}', _Bool, _Complex, _Static_assert, char, const, double, enum, 
float, int, long, restrict, short, signed, struct, typedefname, typeof, union, unsigned, 
void, volatile] 
(and 1 more errors)

incriminated section :

  /*!\brief Generic fixed size buffer structure
   *
   * This structure is able to hold a reference to any fixed size buffer.
   */
  typedef struct vpx_fixed_buf {
    void          *buf; /**< Pointer to the data */
    size_t         sz;  /**< Length of the buffer, in chars */
  } vpx_fixed_buf_t; /**< alias for struct vpx_fixed_buf */

so what to do with size_t when c-for-go'ing ?

@jasonmoo
Copy link

+1
This seems to be an issue with c-for-go and compiler include differences?

xlab/c-for-go#49

@xlab
Copy link
Owner

xlab commented May 27, 2019

It is possible to ignore the type and then add some .go files with build tags that will match target platform, providing necessary definitions.

Example discrepancy:

Not sure if this issue is related to xlab/c-for-go#49.

@xlab xlab closed this as completed in #15 Feb 3, 2022
xlab pushed a commit that referenced this issue Feb 3, 2022
@xlab xlab reopened this Feb 3, 2022
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 a pull request may close this issue.

3 participants