> lib.go > -------------- > package lib > > // #cgo CFLAGS: -x c++
> // #include "cpplib/file.cpp" > // #include "cpplib/wrapper.cpp" > import "C" > Formally, the remaining question is if C compilers on all of your target platforms support -x option. In the worst case, if some does not, you should be able to set CC environment variable to call a script that will call C++ compiler behind the curtains. -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/f06c0017-d115-4864-bfd9-45b9d958bc96n%40googlegroups.com.