You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I successfully used it in Microsoft Visual Studio 2022. But I got some errors in go.
# win
D:\C\Go\pkg\tool\windows_amd64\link.exe: running gcc failed: exit status 1
D:/program_product/go/winTest/bin/lib.X64/detours.lib(obj.X64/modules.obj):(.text$mn+0x20e): undefined reference to `__security_check_cookie'
D:/program_product/go/winTest/bin/lib.X64/detours.lib(obj.X64/modules.obj):(.xdata[$unwind$DetourFindFunction]+0x8): undefined reference to `__GSHandlerCheck'
D:/program_product/go/winTest/bin/lib.X64/detours.lib(obj.X64/detours.obj):(.text$mn+0x238): undefined reference to `??3@YAXPEAX_K@Z'
D:/program_product/go/winTest/bin/lib.X64/detours.lib(obj.X64/detours.obj):(.text$mn+0xe7): undefined reference to `??3@YAXPEAX_K@Z'
D:/program_product/go/winTest/bin/lib.X64/detours.lib(obj.X64/detours.obj):(.text$mn+0xb2): undefined reference to `??3@YAXPEAX_K@Z'
D:/program_product/go/winTest/bin/lib.X64/detours.lib(obj.X64/detours.obj):(.text$mn+0x119): undefined reference to `??3@YAXPEAX_K@Z'
D:/program_product/go/winTest/bin/lib.X64/detours.lib(obj.X64/detours.obj):(.text$mn+0x3bb): undefined reference to `??3@YAXPEAX_K@Z'
D:/program_product/go/winTest/bin/lib.X64/detours.lib(obj.X64/detours.obj):(.text$mn+0x437): more undefined references to `??3@YAXPEAX_K@Z' follow
D:/program_product/go/winTest/bin/lib.X64/detours.lib(obj.X64/detours.obj):(.text$mn+0x48b): undefined reference to `__security_check_cookie'
D:/program_product/go/winTest/bin/lib.X64/detours.lib(obj.X64/detours.obj):(.text$mn+0x76): undefined reference to `??3@YAXPEAX_K@Z'
D:/program_product/go/winTest/bin/lib.X64/detours.lib(obj.X64/detours.obj):(.xdata[$unwind$DetourTransactionCommitEx]+0x8): undefined reference to `__GSHandlerCheck'
D:/program_product/go/winTest/bin/lib.X64/detours.lib(obj.X64/disasm.obj):(.text$mn+0x6d): undefined reference to `__security_check_cookie'
D:/program_product/go/winTest/bin/lib.X64/detours.lib(obj.X64/disasm.obj):(.xdata[$unwind$DetourCopyInstruction]+0x8): undefined reference to `__GSHandlerCheck'
collect2.exe: error: ld returned 1 exit status
set GO111MODULE=auto
set GOARCH=amd64
set GOBIN=
set GOCACHE=D:\Go\cache
set GOENV=C:\Users\lyh\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=D:\Go\workspace\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=D:\Go\workspace
set GOPRIVATE=
set GOPROXY=https://goproxy.cn
set GOROOT=D:\C\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=D:\C\Go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.20
set GCCGO=gccgo
set GOAMD64=v1
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=D:\program_product\go\winTest\go.mod
set GOWORK=
set CGO_CFLAGS=-O2 -g
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-O2 -g
set CGO_FFLAGS=-O2 -g
set CGO_LDFLAGS=-O2 -g
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=C:\Users\lyh\AppData\Local\Temp\go-build2435961028=/tmp/go-build -gno-record-gcc-switches
I try to compile and link it by g++/gcc, instead of "x64 native tool". But it can't.
dose it supports go? How can I solve it?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I successfully used it in Microsoft Visual Studio 2022. But I got some errors in go.
this is my code
go env
I try to compile and link it by g++/gcc, instead of "x64 native tool". But it can't.
dose it supports go? How can I solve it?
Beta Was this translation helpful? Give feedback.
All reactions