Skip to content

Commit 54e1f5e

Browse files
committed
go c++ static lib hint
1 parent 9531d39 commit 54e1f5e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/scriptingAPI.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ Example usage is shown below. Library files listed there are available from the
7676
* **Go**
7777
* Library files: `infoLoggerForGo.a` and `infoLoggerForGo.go`, to be copied to your `${GOPATH}/src/infoLoggerForGo`
7878
* Build: `CGO_LDFLAGS="${GOPATH}/src/infoLoggerForGo/infoLoggerForGo.a -lstdc++" go build`
79+
If the c++ library version used at compile time is not available at runtime, you may include a static version of the lib in the executable by replacing `-lstdc++` with `/full/path/to/libstdc++.a`.
7980
* Code example:
8081
```
8182
package main

0 commit comments

Comments
 (0)