cgo include path for g ++

I wouldn't have understood it, but I couldn't find it even after checking it, so I made a note.

Environment: go version go1.15.2 linux / amd64

When specifying an include path in CGO

-I<Include path>


 But this is only used when compiling with gcc.
 The cpp file is compiled with g ++, so if you want to specify the include path at this time

#### **` -I<Include path>`**
```// #cgo cppflags

 And. that's all.



Recommended Posts

cgo include path for g ++
For the G test 2020 # 2 exam