I wonder if go's google.Init() ends up missing initializers that are in the 
C side of cgo.

On Wednesday, September 21, 2016 at 3:44:20 PM UTC-7, matu...@google.com 
> I have a go binary that calls C code (with cgo). It is a little test, and 
> main calls google.Init() and calls some C function that ends up opening a 
> local file.
> I get an error like:
> WARNING: Logging before InitGoogle() is written to STDERR
> E0921 15:16:46.570978  184662 extractor.cc:102] 
> generic::failed_precondition: FileFactory 'local_file' not found. The 
> application has not been linked against the '//file/localfile' library or 
> InitGoogle() has not been called yet.
> The C library I am linking against is compiled with deps = [ ... , 
> "//file/localfile",...].
> Is there something obvious I am missing? Is there a go equivalent of 
> localfile to directly link to my binary?

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.
  • [go-nuts] localfile maturana via golang-nuts
    • [go-nuts] Re: localfile maturana via golang-nuts

Reply via email to