Re: (C++) Where does offsetof come from?
- To: "Red Hat developer's list" <redhat-devel-list@xxxxxxxxxx>
- Subject: Re: (C++) Where does offsetof come from?
- From: exits funnel <exitsfunnel@xxxxxxxxx>
- Date: Mon, 10 Jan 2005 05:57:44 -0800 (PST)
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=Z4QjyRBsGAhkwhvv/dEYoq8lQHyctc5Cem9O0PnhHZ+J99GvvmUAFhuOBMfQdV0Pm8Cc9D9P+NZIZ7Pnj1pl0tShWECg99hoDTJalfIk+NZdO9w/3CgQQBsYfnurNist/vuTkzN1W3bZpqmElp45vnINlvSnKCCt4fUV/HI2EoU= ;
- In-reply-to: <20050110071655.GB31021@chrys.ms.mff.cuni.cz>
- Reply-to: "Red Hat developer's list" <redhat-devel-list@xxxxxxxxxx>
--- Miloslav Trmac <mitr@xxxxxxxx> wrote:
> Hello,
> On Sun, Jan 09, 2005 at 04:55:58PM -0800, exits
> funnel wrote:
> > I'm trying to figure out where the offsetof macro
> is
> > defined?
> <stddef.h>, so <cstddef> for C++
>
> > The only one I can find is
> > in /usr/include/linux/stddef.h but (A) according
> to
> > the output of g++ -v, this directory isn't in my
> > include path
> You have apparently not looked in /usr/lib/gcc/...
Thanks for taking the time to reply. Okay, so there
are the following three copies of cstddef on my
system:
/usr/include/g++-3/cstddef
/usr/include/c++/3.2.3/cstddef
/lib/ssa/gcc-lib/i386-redhat-linux-gnu/3.5-tree-ssa/include/c++/cstddef
but I'm not explicitly #including any of them and
still offsetof is defined. I guess one of them is
included recursively by iostream.h?
Thanks.
-exits
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Redhat-devel-list mailing list
Redhat-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/redhat-devel-list
[Kernel Newbies]
[Red Hat General]
[Fedora]
[Red Hat Install]
[Linux Kernel Development]
[Yosemite News]