v2ray-core
v2ray-core copied to clipboard
Custom build under Win10 fails
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
You should build ./main
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