On Saturday, May 4, 2019 at 7:07:37 PM UTC+8, Jan Mercl wrote:
>
> On Sat, May 4, 2019 at 12:57 PM T L <tapi...@gmail.com <javascript:>> 
> 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. 
>

But it is a pointer parameter, though it looks like an array. 

-- 
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