Thanks. My .go file contains just the following: package mypackage // #cgo CXXFLAGS: -I/usr/folder/subfolder import "C"
and when I do "go build" or "go build -x" I get an error that the #include library i'm using is not found. has anyone run into this before? On Friday, June 23, 2017 at 1:39:28 PM UTC-7, Sebastien Binet wrote: > > > > On Fri, Jun 23, 2017 at 10:28 PM, <jkl...@ucdavis.edu <javascript:>> > wrote: > >> Could someone elaborate how the CXXFLAGS will look in the .go file? >> >> Is it like >> // #cgo CXXFLAGS: -I/<path to folder> >> >> >> > yes. > more precisely: > > // #cgo CXXFLAGS: -I/path/to/some/folder > import "C" > > with no blank like between the comment with the preprocessor-like looking > directive and the import of the (meta) package "C". > > hth, > -s > > >> >> >> On Thursday, April 13, 2017 at 4:35:54 PM UTC-7, larry104 wrote: >>> >>> >>>> >>>> CXXFLAGS >>>> >>>> See https://golang.org/cmd/cgo . >>>> >>>> Ian >>>> >>> >>> Cool - that works now like a charm - so much simpler than before - no >>> more 100 line long complicated make file. >>> Thanks a lot for your help!!! >>> >> -- >> 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...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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.