在Windows 7中添加环境变量

发布于 2024-12-13 07:56:02 字数 135 浏览 5 评论 0原文

我正在尝试使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

半岛未凉 2024-12-20 07:56:02
  • 按开始按钮。 (或者:windows 键 + r,然后 sysdm.cpl)
  • 右键单击“计算机”,然后单击属性。
  • 单击高级系统设置。
  • 单击环境变量。
  • 添加您需要的变量+正确的路径。

编辑:

将 %GSL_ROOT_DIR% 指向提取 GSL 库的基本目录。即,如果您从此处下载开发人员文件并将其解压到 c:\libs\gsl \ 那么你的 %GSL_ROOT_DIR% 应该是“C:\libs\gsl”(如果你查看 zip 文件,它包含一个 include 和一个 lib 文件夹)。

  • Press the start button. (alternatively: windows key + r, then sysdm.cpl)
  • right click "Computer" then click properties.
  • Click advanced system settings.
  • Click Environment variables.
  • Add the variable you need + the correct path.

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).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文