v2ray-core icon indicating copy to clipboard operation
v2ray-core copied to clipboard

Custom build under Win10 fails

Open Kein opened this issue 1 year ago • 1 comments

GO: go version go1.22.1 windows/amd64

go mod download does nothing. Therefore, I'm using the old way:

go mod vendor
go build -mod=vendor  -ldflags -H=windowsgui v2ray.go 

In response:

# command-line-arguments
.\v2ray.go:101:50: undefined: InboundHandlerConfig
.\v2ray.go:104:21: undefined: CreateObjectWithEnvironment
.\v2ray.go:110:10: undefined: newError
.\v2ray.go:118:54: undefined: InboundHandlerConfig
.\v2ray.go:128:51: undefined: OutboundHandlerConfig
.\v2ray.go:131:21: undefined: CreateObjectWithEnvironment
.\v2ray.go:157:55: undefined: OutboundHandlerConfig
.\v2ray.go:177:18: undefined: Config
.\v2ray.go:188:50: undefined: Config
.\v2ray.go:199:37: undefined: Config
.\v2ray.go:131:21: too many errors

Kein avatar Mar 19 '24 03:03 Kein

You should build ./main

AkinoKaede avatar Apr 05 '24 11:04 AkinoKaede

This issue is stale because it has been open 120 days with no activity. Remove stale label or comment or this will be closed in 5 days

github-actions[bot] avatar Aug 04 '24 01:08 github-actions[bot]