Right, because a pointer to an XDRFILE is neither a struct nor a union :-) Look at how these routines are used, and consult the header files for the right types to give them.
Mark On Thu, Aug 15, 2013 at 7:29 PM, Xu, Yechuan <y...@neu.edu> wrote: > Hi Everyone, > > I want to read a certain frame in a xtc file. How can I do that? > I see there are xdr_getpos() and xdr_setpos(). How should I use > these functions? > > I tried: > > XDRFILE *xtc; > unsigned int pos; > > pos=xdr_getpos(xtc.xdr); > > but I got: > error: request for member ‘xdr’ in something not a structure or union > > Thanks in advance. > YC-- > gmx-users mailing list gmx-users@gromacs.org > http://lists.gromacs.org/mailman/listinfo/gmx-users > * Please search the archive at > http://www.gromacs.org/Support/Mailing_Lists/Search before posting! > * Please don't post (un)subscribe requests to the list. Use the > www interface or send it to gmx-users-requ...@gromacs.org. > * Can't post? Read http://www.gromacs.org/Support/Mailing_Lists -- gmx-users mailing list gmx-users@gromacs.org http://lists.gromacs.org/mailman/listinfo/gmx-users * Please search the archive at http://www.gromacs.org/Support/Mailing_Lists/Search before posting! * Please don't post (un)subscribe requests to the list. Use the www interface or send it to gmx-users-requ...@gromacs.org. * Can't post? Read http://www.gromacs.org/Support/Mailing_Lists