on-internet
← Community

Using GSL for Intel C++ on Windows without lib flags, pragma, or CMake

Stack Overflow ·

Using vcpkg on Windows 11, I installed GSL (GNU Scientific Library) with vcpkg install gsl. Then I did: set INCLUDE=E:\<mypath>\vcpkg\installed\x64-windows\include;%INCLUDE% set LIB=E:\<mypath>\vcpkg\installed\x64-windows\lib;%LIB% set PATH=E:\<mypath>\vcpkg\installed\x64-windows\bin;%PATH% I run the commands on CMD. I have but do not like Visual Studio. Putting *.lib files in the code using pragma is not ideal as seen below: #include <iostream> #include "gsl/gsl_integration.h" #pragma comment(lib, "gsl.lib") #pragma comment(lib, "gslcblas.lib") int main() { size_t n = 5; gsl_integration_glfix

Comments

Sign in or sign up to comment and upvote.

No comments yet.