<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman,new york,times,serif;font-size:12pt">On Thursday, March 5, 2009 1:47:28 AM,<br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2">vivek sharma <viveksharma.iitb@gmail.com> wrote:<br><b><span style="font-weight: bold;"> <br></span></b></font>> I am trying to Install topolbuild on my system, while doing so with<br>> the make file given in the topolbuild folder. but I end up with a list<br>> of error mentioned below:<br>> ......<br>> .<br>> .<br>> .<br>> .compare_FF.c:(.text+0x1285): undefined reference to `exp'<br>>
compare_FF.c:(.text+0x12cc): undefined reference to `sqrt'<br>> collect2: ld returned 1 exit status<br>> make: *** [topolbuild] Error 1<br>> <br>> If somebody has tried this. please help me in figuring out the problem.<br><br>The errors mean that ld cannot locate the math library ( the -lm in the<br>compilation instruction in Makefile which tells it to link against libm.*<br>that is usually found in /usr/lib . On most *nix's, this is libm.so but<br>its libm.dylib on Mac OS X.) If libm.* is not present in either the<br>standard location, or in someplace pointed to by LD_LIBRARY_PATH<br>then it will not be found.<br><br>What is the system on which you are trying to build, where is libm.*<br>located, and what is LD_LIBRARY_PATH set to? If libm.* is in<br>some unusuall place, then the easiest way to go is to add that location<br>to LD_LIBRARY_PATH <br><br>As a side note, an early version of topolbuild was missing the -lm<br>in
the compilation instruction in Makefile. I checked what I've<br>submitted since then and the makefiles all have the -lm as the last<br>item in the compilation instruction.<br><br><br>Sincerely,<br><br>-- <br>Bruce D. Ray, Ph.D.<br>Associate Scientist<br>IUPUI<br>Physics Dept.<br>402 N. Blackford St.<br>Indianapolis, IN 46202-3273<div><br></div><br><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;"></span></b></font><br>
</div></div></div><br>
</body></html>