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

关于代码编译的问题 #41

Closed
ddiiccoo opened this issue Mar 20, 2021 · 4 comments
Closed

关于代码编译的问题 #41

ddiiccoo opened this issue Mar 20, 2021 · 4 comments
Labels

Comments

@ddiiccoo
Copy link

首先非常感谢您提供了这么优秀的程序供我们学习、使用。这段时间我在试着编译您的V1版的tun2socks。我的编译方法如下:
在MinGW的编译环境下,进入go-tun2socks源代码的根目录,执行make命令进行编译。由于原版代码缺少了跟加密有关的几个库“函数的声明”,所以在core/c/custom/sys_arch.c文件里加入了个头文件声明#include <Wincrypt.h>,另外为了支持MinGW编译,在原来_WIN32宏定义的基础上加了__MINGW32__宏。这样,就可以编译出原版的可执行文件。
程序是编译出来了,但是编译出的EXE文件体积有3MB多。这倒是没关系。关键程序执行效率经测试远远没有您提供的编译版本v1.18.3高,几乎就没法用。请问是否我的编译过程不对?

@xjasonlyu
Copy link
Owner

V1版本的编译请看原版eycorsican/go-tun2socks,我没有在win下编译过。

@xjasonlyu
Copy link
Owner

我记得我好像改了点啥,不过当时v1就没打算在windows下面跑的,所以也没管了。。

@ddiiccoo
Copy link
Author

哦,好的,谢谢

@github-actions
Copy link

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

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

No branches or pull requests

2 participants