'How to use -enable-cxx11 flag in cgo
I am trying to run C++ code inside my go code. I figured out that I need -enable-cxx11 flag during compilation (because otherwise I get an error like here).
But somehow flags do not work:
/*
#cgo CPPFLAGS: -enable-cxx11
#include "cPackage/create_hyper_file_from_csv.cpp"
*/
import "C"
How do I use this flag?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
