<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<a class="moz-txt-link-abbreviated" href="mailto:kdsfinger@gmail.com">kdsfinger@gmail.com</a> wrote:<br>
<br>
<br>
<br>
<blockquote
cite="midcac7ac540603132201r3dae919n8508d84d41657508@mail.gmail.com"
type="cite">c++ -fPIC "CMakeFiles/test1.dir/main.o" -o test1
-rdynamic -lgsl_sf_bessel_j0<br>
/usr/bin/ld: cannot find -lgsl_sf_bessel_j0<br>
</blockquote>
<br>
You should read the output - the lib is not found.<br>
Have a look at the find script and you will get the idea to use teh
GSL_LIBRARIES variable.<br>
<br>
<pre><b>> TARGET_LINK_LIBRARIES</b>(test1 gsl_sf_bessel_j0)
</pre>
E.g. <br>
TARGET_LINK_LIBRARIES(test1 ${GSL_LIBRARIES})<br>
<br>
Otherwise add LINK:DIRECTORIES<br>
<br>
Jan.<br>
<pre class="moz-signature" cols="72">--
Dipl.-Ing. Jan Woetzel
--------------------------------------------------
Uni Kiel
Institut f. Informatik und Praktische Mathematik
Hermann-Rodewaldstr. 3 [Raum 310]
24098 Kiel/Germany
--------------------------------------------------
Tel +49-431-880-4477
Fax +49-431-880-4054
Privat +49-431-802872
Mob. +49-179-2937346
--------------------------------------------------
Url <a class="moz-txt-link-abbreviated" href="http://www.mip.informatik.uni-kiel.de/~jw">www.mip.informatik.uni-kiel.de/~jw</a>
Email <a class="moz-txt-link-abbreviated" href="mailto:jw@mip.informatik.uni-kiel.de">jw@mip.informatik.uni-kiel.de</a>
Privat <a class="moz-txt-link-abbreviated" href="mailto:jw@WoetzelWeb.de">jw@WoetzelWeb.de</a>
</pre>
</body>
</html>