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

Windows 平台编译出错 #20

Open
zouweibing525 opened this issue Sep 9, 2019 · 1 comment
Open

Windows 平台编译出错 #20

zouweibing525 opened this issue Sep 9, 2019 · 1 comment

Comments

@zouweibing525
Copy link

autossh-1.1.0在Windows平台编译出错,错误信息如下:

C:\go\Project\src>go build -o autossh -ldflags "-X main.Version=v1.1.0 -X main.Build=201909092119" autossh/src/main/main.go

autossh/src/app

autossh\src\app\server.go:367:29: undefined: syscall.SIGWINCH
autossh\src\app\show_cp.go:301:34: not enough arguments in call to syscall.Syscall
autossh\src\app\show_cp.go:301:35: undefined: syscall.SYS_IOCTL
autossh\src\app\show_cp.go:303:11: undefined: syscall.TIOCGWINSZ

C:\go\Project\src>go version
go version go1.12.9 windows/amd64

@hexiyou
Copy link

hexiyou commented Feb 7, 2021

同样的报错,差了下资料,貌似syscall这样的函数不支持Windows,除非代码重写,否则无解。

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