Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Which dll to use? Where to find the corresponding lib or dll.a? #48

Open
jwuttke opened this issue Jul 20, 2020 · 1 comment
Open

Which dll to use? Where to find the corresponding lib or dll.a? #48

jwuttke opened this issue Jul 20, 2020 · 1 comment

Comments

@jwuttke
Copy link

jwuttke commented Jul 20, 2020

I'd build the GSL shared library under MSys2:

pacman -S git cmake ninja gcc

git clone https://github.com/ampl/gsl.git
cd gsl
mkdir build
cd build
cmake -DBUILD_SHARED_LIBS:BOOL=ON -G "Ninja" ..
cmake --build .
ctest --output-on-failure

Everything goes fine, thank you very much for providing this excellent CMake support.

My questions now:

  • In directory bin/, I find amplgsl.dll and msys-gsl.dll. What is the relation between these two? Do I need to link to both of them?

  • Where are the corresponding lib or dll.a files? In the build main directory, I find libgsl.dll.a. Why yet another name?

@mapgccv
Copy link
Contributor

mapgccv commented Jul 28, 2021

  • amplgsl.dll is a version of GSL's dynamic library that can be loaded from ampl (www.ampl.com), so it is a completely separate entity - you don't need it if you're not using AMPL
  • can you check if now the static library is copied correctly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants