On Sat, May 4, 2019 at 12:57 PM T L <tapir....@gmail.com> wrote:
>
>
> In one of my cgo project, there is a c API (a c++ wrapper) like
>
> bool foo(bar bars[2]);
>
> It fails to compile with error message:
>
> error: array type has incomplete element type 'bar' {aka 'struct bar'}

Incomplete type has uknown size. You must define struct bar before
using the typedef in the array declarator.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to