#6

Rebuilding...

Openflintforgeopened 8y ago
$ 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 ?

Activity

2
jasonmoo7y ago

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

https://github.com/xlab/c-for-go/issues/49

xlab7y ago

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.