<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3086" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN
class=128572114-14052007>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=128572114-14052007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=128572114-14052007>I have been thinking
how to write a Fortran program to read xtc file for a long time. The gmx
homepage provides a code testxtc.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=128572114-14052007></SPAN></FONT> </DIV>
<DIV><FONT><SPAN class=128572114-14052007></SPAN></FONT><FONT face=Arial><FONT
size=2>B<SPAN class=128572114-14052007>ut when I simply compile it, some
errors are shown as follows:</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=128572114-14052007></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=128572114-14052007>/tmp/ifortuDk9ZY.o(.text+0x5c): In function
`MAIN__':<BR>: undefined reference to
`xdrfopen_'<BR>/tmp/ifortuDk9ZY.o(.text+0xf0): In function `MAIN__':<BR>:
undefined reference to `xdrfopen_'<BR>/tmp/ifortuDk9ZY.o(.text+0x1a1): In
function `MAIN__':<BR>: undefined reference to
`readxtc_'<BR>/tmp/ifortuDk9ZY.o(.text+0x25d): In function `MAIN__':<BR>:
undefined reference to `writextc_'<BR></SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=128572114-14052007>I guess it is
related to the library xtcf. Gmx homepage says</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=128572114-14052007></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=128572114-14052007><FONT
size=3><FONT face="Times New Roman">To link your program use
</FONT><TT>-L$(GMXHOME)/lib/$(CPU) -lxtcf</TT><FONT face="Times New Roman"> on
your linker command line</FONT></FONT></SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=128572114-14052007></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=128572114-14052007>But I dont
know how to download and link this library. Anyone can give me a clear guide to
solve it?</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=128572114-14052007></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=128572114-14052007>Thanks in
advance</DIV></SPAN></FONT></FONT>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV align=left>
<DIV align=left><FONT face="Times New Roman" size=4>Zhongqiao Hu</FONT></DIV>
<DIV align=left><FONT face=Arial size=2></FONT> </DIV></DIV>
<DIV> </DIV></BODY></HTML>