Re: (C++) Where does offsetof come from?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--- 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

[Index of Archives]     [Kernel Newbies]     [Red Hat General]     [Fedora]     [Red Hat Install]     [Linux Kernel Development]     [Yosemite News]

  Powered by Linux