在Windows 7中添加环境变量
我正在尝试使用 CMake,需要在 Windows 7 中添加环境变量 GSL_ROOT_DIR,以便 %GSL_ROOT_DIR%\include 包含 GSL 头文件,%GSL_ROOT_DIR%\lib 包含 GSL 库。 你能具体告诉我该怎么做吗?
I am trying to use CMake and I need to add an environment variable GSL_ROOT_DIR in windows 7, so that %GSL_ROOT_DIR%\include contains the GSL header files and %GSL_ROOT_DIR%\lib contains the GSL libraries.
Could you tell me exactly how can I do that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
编辑:
将 %GSL_ROOT_DIR% 指向提取 GSL 库的基本目录。即,如果您从此处下载开发人员文件并将其解压到 c:\libs\gsl \ 那么你的 %GSL_ROOT_DIR% 应该是“C:\libs\gsl”(如果你查看 zip 文件,它包含一个 include 和一个 lib 文件夹)。
EDIT:
point %GSL_ROOT_DIR% to the base directory of where you extracted the GSL library. I.e. if you downloaded the developer files from here and extracted it to c:\libs\gsl\ then your %GSL_ROOT_DIR% should be "C:\libs\gsl" (if you look at the zip file, it contains both an include, and a lib folder).