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'}
The same error for the following prototype
bool foo(bar bars[]);
But, it is ok for the following one
bool foo(bar* bars);
The first two both compile ok in the c++ project, but not for the cgo
project, why?
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.