This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Fwd: Using embedded c and including header files
- From: Tim Beaulen <tbscope at gmail dot com>
- To: systemtap at sourceware dot org
- Date: Thu, 12 Aug 2010 08:23:31 +0200
- Subject: Fwd: Using embedded c and including header files
- References: <a38a39c2-d4eb-4bfb-9767-cbed19b6e59f@default> <AANLkTi=Sz0j7EYW_v_ZY7Z8GKQE5=UH-r-pgt1o6KEAd@mail.gmail.com>
---------- Forwarded message ----------
From: Tim Beaulen <tbscope@gmail.com>
Date: Thu, Aug 12, 2010 at 8:22 AM
Subject: Re: Using embedded c and including header files
To: Wenji Huang <wenji.huang@oracle.com>
On Thu, Aug 12, 2010 at 8:02 AM, Wenji Huang <wenji.huang@oracle.com> wrote:
>>llo,
>>
>>I'm experimenting with embedding c in my scripts but I have a problem.
>>
>>When I add an include file, it doesn't find it. The compiler does not
>>look in /usr/include
>
> This is for user space program.
>>I searched through the manual of gcc and set a couple of environment
>>variables (CPATH, ...), but this didn't work either.
>>
>>Is it possible to tell the compiler where to look for headers? I don't
>>see an option in stap itself to set these directories. I'm using
>>systemtap 1.2 though.
>
> The standard searching path is your kernel module building path, like
>
> /lib/modules/2.6.18-8.el5/build/include
>
> put your file under that, or modify Makefile
>
> Regards,
> Wenji
>
>
Thanks, I'll try that.