Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom build under Win10 fails #2939

Open
Kein opened this issue Mar 19, 2024 · 1 comment
Open

Custom build under Win10 fails #2939

Kein opened this issue Mar 19, 2024 · 1 comment

Comments

@Kein
Copy link

Kein commented Mar 19, 2024

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
@AkinoKaede
Copy link
Contributor

You should build ./main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants