Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xiabo committed Aug 5, 2021
1 parent 7754041 commit db00d2e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions win-c++g++-go/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> go build
这里,不是go build xxx.go命令,go build xxx.go只会单独编译xxx.go文件,而不会自动编译链接相关的C源文件

if mac

> go build -ldflags -w
2 changes: 2 additions & 0 deletions win-c++g++-go/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ build:
rm -f test.o
gcc -c test.cpp -o test.o
gcc -shared -o libgotest.dll test.o
# if mac
# gcc -shared -o libgotest.so test.o
rm -f test.o

0 comments on commit db00d2e

Please sign in to comment.