Code Monkey home page Code Monkey logo

interp2d's People

Contributors

diazona avatar v1j4y avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

interp2d's Issues

Failure to link to gsl's blas

Hi, after using make it seems that it's trying to link to gsl, but not gslcblas:

Linking C executable interp2dtest
//usr/local/lib/libgsl.so: undefined reference to cblas_dasum' //usr/local/lib/libgsl.so: undefined reference tocblas_sger'
//usr/local/lib/libgsl.so: undefined reference to cblas_cdotc_sub' //usr/local/lib/libgsl.so: undefined reference tocblas_icamax'

[...]

Adding gslcblas to target_link_libraries in CMakeLists.txt solved it for me.

Test results

Hello,

Run "interp2dtest" (compiled with with gcc 4.4.5) under valgrind and no issues found.

As an aside, as a complete newbie to Cmake I've found a little bit tricky to tell it where my gsl includes & libs are. A few words on this in the readme file would be helpful.

Regards.

Failure to link interp2dtest to MacPorts gsl

The cmake installation of interp2d on my Mac completed only partially. The static library was built successfully, but the linking of the interp2dtest failed:

[ 71%] Built target interp2d_static
[ 85%] Linking C executable interp2dtest
ld: library not found for -lgsl
collect2: error: ld returned 1 exit status
make[2]: *** [interp2dtest] Error 1
make[1]: *** [CMakeFiles/interp2dtest.dir/all] Error 2
make: *** [all] Error 2

The CMakeCache.txt contains all the necessary entries for gsl:

GSL_CFLAGS:INTERNAL=-I/opt/local/include
GSL_FOUND:INTERNAL=1
GSL_INCLUDEDIR:INTERNAL=/opt/local/include
GSL_INCLUDE_DIRS:INTERNAL=/opt/local/include
GSL_LDFLAGS:INTERNAL=-L/opt/local/lib;-lgsl;-lgslcblas;-lm
GSL_LIBDIR:INTERNAL=/opt/local/lib
GSL_LIBRARIES:INTERNAL=gsl;gslcblas;m
GSL_LIBRARY_DIRS:INTERNAL=/opt/local/lib

I wonder whether this info didn't trickle down into the link command for interp2dtest.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.