I don't have the source code handy in front of me, but look at the Makefile
-- you should see a list of different objects, all of which will be listed
as dependencies for the sander: and sander.MPI: rules. Add the name of
your file with a file suffix .o (for object) instead of .f to that list.
That way, your object will be linked in the final executable.
To update the depend script, all you have to do is run "make depend" in the
$AMBERHOME/src/sander directory. (Alternatively, go to
$AMBERHOME/src/sander and run
./makedepend > depend
directly).
HTH,
Jason
On Fri, Jun 15, 2012 at 1:36 PM, Xin Geng <xingeng2011.berkeley.edu> wrote:
> Hi all,
>
> Thanks so much for the help.
>
> I run "make depend" before "make serial",but I don't know how to update
> the Makefile to add my new object. Can you tell me how to update the
> Makefile? Or, is there any other command I should use to update the
> depends file?
>
> I have a "use genhpmf" line at the beginning of the functions that need my
> module in egb.f and force.f. And I'm sure the code to use the function and
> call the subroutine is right.
>
> Thanks again for the help!
>
> Xin
> On Thu, 14 Jun 2012 21:35:33 -0400, case <case.biomaps.rutgers.edu> wrote
> > On Thu, Jun 14, 2012, Xin Geng wrote:
> >>
> >> I add a new module named genhpmf to Amber10 source files.
> >> When I compiled all the source files, it gave the following errors:
> >>
> >>
> >> egb.o(.text+0x4023): In function `__genborn__egb':
> >>
> >> : undefined
> >> reference to `__genhpmf__ehpmf'
> >
> > Without seeing the code, it will be quite difficult to debug. Be sure
> you
> > have a "use genhpmf" (or similar) line at the beginning of egb.f and
> > force.f.
> > But that is just a wild guess (tm).
> >
> > ....dac
> >
> >
> > _______________________________________________
> > AMBER mailing list
> > AMBER.ambermd.org
> > http://lists.ambermd.org/mailman/listinfo/amber
>
>
> _______________________________________________
> AMBER mailing list
> AMBER.ambermd.org
> http://lists.ambermd.org/mailman/listinfo/amber
>
--
Jason M. Swails
Quantum Theory Project,
University of Florida
Ph.D. Candidate
352-392-4032
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Fri Jun 15 2012 - 11:00:03 PDT