GSL linkage on Windows
问题 I am trying to compile examples from GSL documentation. Windows, Cmake + MSVS + GSL 2.6 installed under conda. Basic example gets compiled and works just fine: cmake_minimum_required(VERSION 3.15) project(test) find_package(GSL REQUIRED) add_executable(test) target_sources(test PRIVATE main.cpp) target_include_directories(test PRIVATE "${GSL_INCLUDE_DIRS}") target_link_libraries(test "${GSL_LIBRARIES}") #include <stdio.h> #include <gsl/gsl_sf_bessel.h> int main (void) { double x = 5.0; double