On Thursday, March 5, 2009 1:47:28 AM,
vivek sharma <[email protected]> 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
to LD_LIBRARY_PATH
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.
Sincerely,
--
Bruce D. Ray, Ph.D.
Associate Scientist
IUPUI
Physics Dept.
402 N. Blackford St.
Indianapolis, IN 46202-3273
________________________________
_______________________________________________
gmx-users mailing list [email protected]
http://www.gromacs.org/mailman/listinfo/gmx-users
Please search the archive at http://www.gromacs.org/search before posting!
Please don't post (un)subscribe requests to the list. Use the
www interface or send it to [email protected].
Can't post? Read http://www.gromacs.org/mailing_lists/users.php