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

fatal error: event/goEvent.h: No such file or directory #369

Closed
maikoulin opened this issue Sep 23, 2021 · 3 comments
Closed

fatal error: event/goEvent.h: No such file or directory #369

maikoulin opened this issue Sep 23, 2021 · 3 comments
Labels
Milestone

Comments

@maikoulin
Copy link

图片

github.com/robotn/gohook

vendor\github.com\robotn\gohook\hook.go:22:27: fatal error: event/goEvent.h: No such file or directory
#include "event/goEvent.h"
^
compilation terminated

@vcaesar
Copy link
Member

vcaesar commented Sep 23, 2021

This is go mod vendor problem, golang #26366.

@vcaesar vcaesar closed this as completed Sep 23, 2021
@vcaesar vcaesar added this to the v0.100.0 milestone Sep 23, 2021
@weitzj
Copy link

weitzj commented Nov 27, 2021

I guess another fix would be to introduce dummy.go files with empty imports with the "C" CGO capture, i.e. "_ ...." so that go mod vendor will keep the C-Headers.

See for example the fix here how it is done: wasmerio/wasmer-go#197

@vcaesar
Copy link
Member

vcaesar commented Nov 27, 2021

I know this method. But I don't think this is good, and I think vendor is low frequency used.

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

3 participants