I am developing a binding to a C++ library using a wrapper module (using extern "C" directive). The C++ library files are in a subdirectory of the package.
If I create a file in the package directory such as: lib.cpp -------------- #include "cpplib/file.cpp" #include "cpplib/wrapper.cpp" -------------- It works, but if I create a Go file instead such as: lib.go -------------- package lib // #include "cpplib/file.cpp" // #include "cpplib/wrapper.cpp" import "C" ... -------------- This doesn't compile because cgo uses gcc instead of g++. I would prefer this second way because I need to configure the build using tags. Is there a way to solve this ? Regards. -- 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/c5554d4d-0190-42f1-a1ef-f05fb48942a9n%40googlegroups.com.