on-internet
← Community

Utilizing GSL for Intel C++ on Windows without implementing lib flags or 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 type and run the commands on CMD. I have but I do not like using Visual Studio. Putting *.lib files in the code using pragma is not ideal for me, as seen in the sample code below: #include <iostream> #include "gsl/gsl_integration.h" #pragma comment(lib, "gsl.lib") #pragma comment(lib, "gslcblas.lib") int m

Comments

Sign in or sign up to comment and upvote.

No comments yet.