goebpf icon indicating copy to clipboard operation
goebpf copied to clipboard

Include linux header file failed

Open qiffang opened this issue 3 years ago • 2 comments

I want to #include <net/sock.h> in kprobe.c and i also add the path in clang but it failed. Can you tell me how to include the linux header? Thanks

qiffang avatar Mar 28 '21 10:03 qiffang

It is a bit vague question - in short, it depends on your build system.

Generally you need to add some kind of dependencies to build system so compiler will find these headers.

belyalov avatar Apr 01 '21 18:04 belyalov

@qiffang Sorry, were you able to solve the problem?

sp3rm0k avatar Jan 29 '24 17:01 sp3rm0k