[gmx-users] Installing topolbuild
Bruce D. Ray
brucedray at yahoo.com
Thu Mar 5 14:41:46 CET 2009
On Thursday, March 5, 2009 1:47:28 AM,
vivek sharma <viveksharma.iitb at gmail.com> wrote:
> I am trying to Install topolbuild on my system, while doing so with
> the make file given in the topolbuild folder. but I end up with a list
> of error mentioned below:
> .compare_FF.c:(.text+0x1285): undefined reference to `exp'
compare_FF.c:(.text+0x12cc): undefined reference to `sqrt'
> collect2: ld returned 1 exit status
> make: *** [topolbuild] Error 1
> If somebody has tried this. please help me in figuring out the problem.
The errors mean that ld cannot locate the math library ( the -lm in the
compilation instruction in Makefile which tells it to link against libm.*
that is usually found in /usr/lib . On most *nix's, this is libm.so but
its libm.dylib on Mac OS X.) If libm.* is not present in either the
standard location, or in someplace pointed to by LD_LIBRARY_PATH
then it will not be found.
What is the system on which you are trying to build, where is libm.*
located, and what is LD_LIBRARY_PATH set to? If libm.* is in
some unusuall place, then the easiest way to go is to add that location
As a side note, an early version of topolbuild was missing the -lm
in the compilation instruction in Makefile. I checked what I've
submitted since then and the makefiles all have the -lm as the last
item in the compilation instruction.
Bruce D. Ray, Ph.D.
402 N. Blackford St.
Indianapolis, IN 46202-3273
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gromacs.org_gmx-users