错误
main.c: In function 'tun2socksThread':
main.c:20:5: warning: implicit declaration of function 'GoStartTun2socks' [-Wimp
licit-function-declaration]
GoStartTun2socks(configFile);
^
main.c: In function 'uiThread':
main.c:30:5: warning: implicit declaration of function 'GoReloadConfig' [-Wimpli
cit-function-declaration]
GoReloadConfig(configFile);
^
C:\Users\ADMINI~1\AppData\Local\Temp\ccwUkBMZ.o:main.c:(.text+0x44): undefined r
eference to GoStartTun2socks' C:\Users\ADMINI~1\AppData\Local\Temp\ccwUkBMZ.o:main.c:(.text+0xad): undefined r eference toGoReloadConfig'
collect2.exe: error: ld returned 1 exit status
环境win7-64 git tdm64-gcc-5.1.0-2 go 执行操作 windows: gcc -o tun2socks main.c libtun2socks.lib -l winmm -l ntdll -l Ws2_32
错误 main.c: In function 'tun2socksThread': main.c:20:5: warning: implicit declaration of function 'GoStartTun2socks' [-Wimp licit-function-declaration] GoStartTun2socks(configFile); ^ main.c: In function 'uiThread': main.c:30:5: warning: implicit declaration of function 'GoReloadConfig' [-Wimpli cit-function-declaration] GoReloadConfig(configFile); ^ C:\Users\ADMINI~1\AppData\Local\Temp\ccwUkBMZ.o:main.c:(.text+0x44): undefined r eference to
GoStartTun2socks' C:\Users\ADMINI~1\AppData\Local\Temp\ccwUkBMZ.o:main.c:(.text+0xad): undefined r eference to
GoReloadConfig' collect2.exe: error: ld returned 1 exit status求帮助