Re: [AMBER] undefined reference error in compiling

From: Jason Swails <jason.swails.gmail.com>
Date: Thu, 14 Jun 2012 21:12:51 -0400

Did you update the depends file? Did you update the Makefile to add your
new object there?

On Thu, Jun 14, 2012 at 8:52 PM, Xin Geng <xingeng2011.berkeley.edu> wrote:

>
>
> Dear all,
>
> 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'
>
> force.o(.text+0x880): In function
> `force_':
>
> : undefined reference to `__genhpmf__init_hpmf'
>
> collect2: ld
> returned 1 exit status
>
> make[1]: *** [sander] Error 1
>
> make[1]: Leaving
> directory `/home1/xingeng/HPMF/Amber10/src/sander'
>
> make: *** [serial]
> Error 2
>
> All the functions and subroutines I define are public.
>
> Are
> there any other commands I can use instead of "make serial" to help me
> compile the files?
>
> Thanks for your help!
>
> Xin
>
>
> _______________________________________________
> 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 Thu Jun 14 2012 - 18:30:03 PDT
Custom Search