So I would like to build a shared library of clapack through cmake. What is the prcedure?
When I put SET(BUILD_SHARED_LIBS ON) to CMakeLists.txt i run cmake . and then make, I get an error
.....
[ 5%] Building C object F2CLIBS/libf2c/CMakeFiles/f2c.dir/etime_.c.o
Linking C shared library libf2c.dylib
Undefined symbols:
"_MAIN__", referenced from:
_main in main.c.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [F2CLIBS/libf2c/libf2c.dylib] Error 1
make[1]: *** [F2CLIBS/libf2c/CMakeFiles/f2c.dir/all] Error 2
make: *** [all] Error 2
I run it on osx snow leopard and I have installed gfortran and f2c from http://www.webmo.net/support/fortran_osx.html
Any ideas?
Best Regards,
Kostas

