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

win64位能编译 #2

Open
yupor5 opened this issue Aug 29, 2022 · 4 comments
Open

win64位能编译 #2

yupor5 opened this issue Aug 29, 2022 · 4 comments

Comments

@yupor5
Copy link

yupor5 commented Aug 29, 2022

D:/GoLand/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible .\lib\nfapi.lib when searching for -lnfapi

提示这个

@mfktqti
Copy link

mfktqti commented Jan 6, 2023

你好,你的这个问题解决的了吗?怎么解决的呢?

@ellermister
Copy link

https://netfiltersdk.com/
@yupor5 @mfktqti
从这个站点下载demo,里面包含sdk,托 nfapi.dll 到lib目录就可以了。

@tomnattle
Copy link

https://netfiltersdk.com/ @yupor5 @mfktqti 从这个站点下载demo,里面包含sdk,托 nfapi.dll 到lib目录就可以了。

这个dll文件好像是收费的

@mingtianquan
Copy link

@ellermister 用他这个库编译的 ,releases里面的dll文件不一样,releases里面的dll我用函数查看器查看有5000多个函数呢,自己编译的只有24个函数,用的编译命令是。
set GOARCH=386
set CGO_ENABLED=1
go build -ldflags "-s -w" -buildmode=c-shared -o jcdl.dll

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

5 participants