Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!uunet!panews!ibmpa.awdpa.ibm.com!mimivo From: mimivo@ibmpa.awdpa.ibm.com (Mimi Phu+o+ng-Tha?o Vo~) Newsgroups: comp.lang.c++ Subject: RE: NIH Class Library Message-ID: <1991Apr30.083552@ibmpa.awdpa.ibm.com> Date: 30 Apr 91 15:35:52 GMT Article-I.D.: ibmpa.1991Apr30.083552 Sender: news@ibmpa.awdpa.ibm.com (news ego) Reply-To: mimivo@ibmpa.awdpa.ibm.com (Mimi Phu+o+ng-Tha?o Vo~) Followup-To: NIH Class Library Organization: IBM Advanced Workstations Division, Palo Alto Lines: 46 Thanks everyone for helping with the fd_set structure problem. I found out that we have it in our system in /usr/include/sys/select.h. I need to define _BSD in order to get to this structure. However, I just found a new problem and wonder if you could help me: The class FDSet was defined as class FDSet: public VIRTUAL Object { .... private: fd_set fs; protected: virtual void storer(OIOofd&) const; virtual void storer(OIOout&) const; .... }; where fd_set is typedef struct fd_set { fd_mask fds_bits[howmany(FD_SETSIZE, NFDBITS)]; } fd_set; And in FDSet.c we have the following: void FDSet::storer(OIOofd& fd) const { BASE::storer(fd); fd.put((const char*)&fs,(unsigned)sizeof(fs)); } Which AT&T C++ compiler on my system complaints that you could not take address of member FDSet::fs of const struct FDSet Did anyone run into this problem when they were trying to build it? Or my NIHCL is out of date. Thanks, Mimi. -- ======================================================================== Name: Mimi Phuong-Thao Vo Org.: IBM AWD Palo Alto Phone: T465/(415)855-4467 Disc: "Any opinions are mine!" email: mimivo@ibmpa.awdpa.ibm.com uucp: ...!uunet!ibmsupt!mimivo ========================================================================