<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;">   =&gt; type the command =&gt; make -f Makefile.x86_64-unknown-linux-gnu</span></div><div>   =&gt; type the command =&gt; cc -O -o template template.c -lm</div>
<div>   =&gt; type the command =&gt; ./template &lt; <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>&gt; Hi<br>&gt; Following are<br>&gt; 1.  template.c<br>&gt; 2.  README<br>
&gt; 3.  Makefile.x86_64-unknown-linux-gnu<br>&gt;<br>&gt;<br>&gt; In the template.c =&gt; it includes several GROMACS headers.<br>&gt; #include &quot;statutil.h&quot;<br>&gt; #include &quot;typedefs.h&quot;<br>&gt; #include &quot;smalloc.h&quot;<br>
&gt; #include &quot;vec.h&quot;<br>&gt; #include &quot;copyrite.h&quot;<br>&gt; #include &quot;statutil.h&quot;<br>&gt; #include &quot;tpxio.h&quot;<br>&gt;<br>&gt;<br>&gt;<br>&gt; If I put the GROMACS headers with template.c in the same directory, should I<br>
&gt; still need the Makefile for my architecture, intended to compile template.c<br>&gt; and link to the GROMACS libraries correctly ???<br><br>The point of the Makefile is that you don&#39;t need to move headers around<br>
- like it says in the README:<br><br>&quot;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 &quot;Makefile&quot; or use the -f<br>
option to gmake in order to select a makefile.&quot;<br><br>So do &quot;make -f Makefile.x86_64-unknown-linux-gnu&quot; 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>