<br><div>HI</div><div>To use template.c</div><div>1. create a file to put template.c and <span class="Apple-style-span" style="border-collapse: collapse; ">Makefile.x86_64-unknown-linux-gnu together</span></div><div><span class="Apple-style-span" style="border-collapse: collapse;">2. under C compiler</span></div>
<div><span class="Apple-style-span" style="border-collapse: collapse;"> => type the command => make -f Makefile.x86_64-unknown-linux-gnu</span></div><div> => type the command => cc -O -o template template.c -lm</div>
<div> => type the command => ./template < <a href="http://template.in">template.in</a></div><div><br></div><div><br></div><div>Am I right?</div><div><br></div><div>Thank you</div><div>Lin</div><div><br></div><div>
<br></div><div><br></div><div><br></div><div><br></div><div><span class="Apple-style-span" style="border-collapse: collapse; ">Chih-Ying Lin wrote:<br>> Hi<br>> Following are<br>> 1. template.c<br>> 2. README<br>
> 3. Makefile.x86_64-unknown-linux-gnu<br>><br>><br>> In the template.c => it includes several GROMACS headers.<br>> #include "statutil.h"<br>> #include "typedefs.h"<br>> #include "smalloc.h"<br>
> #include "vec.h"<br>> #include "copyrite.h"<br>> #include "statutil.h"<br>> #include "tpxio.h"<br>><br>><br>><br>> If I put the GROMACS headers with template.c in the same directory, should I<br>
> still need the Makefile for my architecture, intended to compile template.c<br>> and link to the GROMACS libraries correctly ???<br><br>The point of the Makefile is that you don't need to move headers around<br>
- like it says in the README:<br><br>"A Makefile.arch is created for each architecture you install<br>with the correct paths and libraries. You will have to link<br>(or copy) the correct makefile to "Makefile" or use the -f<br>
option to gmake in order to select a makefile."<br><br>So do "make -f Makefile.x86_64-unknown-linux-gnu" like it says :-)<br><br>Mark<br></span></div><div><span class="Apple-style-span" style="border-collapse: collapse;"><br>
</span></div><div><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></div><div><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></div><div><span class="Apple-style-span" style="border-collapse: collapse;"><br>
</span></div><div><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></div>