Code Monkey home page Code Monkey logo

Comments (3)

gbpoole avatar gbpoole commented on May 31, 2024

The compile error with the missing header file should be fixed now.

As for the linking error (with gbpMCMC) ... are you sure that you have gsl in your LD_LIBRARY_PATH or have set the environment variable GBP_GSL_DIR in your .bashrc.myCode appropriately (and have made sure to source it)?

from gbpcode.

pelahi avatar pelahi commented on May 31, 2024

The linking error is a result of missing -libgsl passed as compile options.

Standard make outputs the following

Compile and linking parameters:

CC =g++ -std=c++98

CPPFLAGS= -DUSE_GETLINE=0 -I/gbpCode/myInclude/ -DUSE_CFITSIO=0 -DUSE_HDF5=0 -DUSE_GDLIB=0 -DUSE_CUDA=0 -DUSE_DEBUGGER=0 -DUSE_VALGRIND=0 -DUSE_GSL=0 -DUSE_FFTW=0 -DUSE_SPRNG=0 -DUSE_MPI=0 -DUSE_MPI_IO=0 -O2 -DGBP_DATA_DIR=/gbpCode/myData/"

LDFLAGS= -L/gbpCode/myLib/

Shouldn't the default LDFLAGS have -lgsl and -lgslcblas? Adjusting the Makefile.mylocal did not alleviate the problem however, removing the USE_GSL check in Makefile.libs so that the code always adds a -lgsl -lgslcblas -lm by default worked.

from gbpcode.

gbpoole avatar gbpoole commented on May 31, 2024

That's because you're setting USE_GSL=0 somehow. It should be USE_GSL=1

from gbpcode.

Related Issues (1)

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.