[Ipopt] linking library to lapack, gfortran

Ashutosh Mahajan asm4 at lehigh.edu
Sat Aug 8 16:44:09 EDT 2009


i am wondering why does libipopt.so not link to libgfortran and liblapack,
even though it needs them. if i have a simple C code that i need to link with
ipopt, i need to add -llapack and -lgfortran even though my code does not use
anything from these libraries. its not a show stopper but still a bit of
annonyance (and gets aggravated, when someone else needs to link to my library).

libClp on the other hand does seem to link to such libraries. 
$ ldd libClp.so
        linux-vdso.so.1 =>  (0x00007fff38dfe000)
        liblapack.so.3gf => /usr/lib/atlas/liblapack.so.3gf (0x00007f732ff03000)
        libblas.so.3gf => /usr/lib/atlas/libblas.so.3gf (0x00007f732f552000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f732f247000)
        libm.so.6 => /lib/libm.so.6 (0x00007f732efc6000)
        libc.so.6 => /lib/libc.so.6 (0x00007f732ec64000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007f732ea55000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f7330c34000)


--
regards
Ashutosh Mahajan
http://coral.ie.lehigh.edu/~asm4



More information about the Ipopt mailing list