我想知道是否可以从Windows的命令提示符列出所有环境变量.
相当于PowerShell gci env:(或ls env:或dir env:)的东西.
Hell'o我刚刚安装了Visual Studio 2017(企业版).我打开了我在Visual Studio 2015中创建的项目.我的项目使用了windows.h库但是VS2017找不到这个库.怎么修这个?
今天正式是我使用C++的第一天:P
我已经下载了适用于Windows Server 2003 SP1的Visual C++ 2005 Express Edition和Microsoft Platform SDK,因为我想了解开源的Enso Project.
所以,在安装scons之后我去了控制台并尝试使用scons编译它,但是我收到了这个错误:
C:\oreyes\apps\enso\enso-read-only\src\platform\win32\Include\WinSdk.h(64) : fatal error C1083: Cannot open include file: 'Windows.h': No such file or directory
scons: *** [src\platform\win32\InputManager\AsyncEventProcessorRegistry.obj] Error 2
scons: building terminated because of errors.
Run Code Online (Sandbox Code Playgroud)
检查这些链接后:
我设法像这样配置我的安装:

甚至运行这个脚本

我设法在IDE中编译下面的文件.
// Test.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <Windows.h>
int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}
Run Code Online (Sandbox Code Playgroud)
但我仍然在控制台中得到了这个例外.有没有人有scons经验?
编辑
实际上(我忘了告诉你)我用"Visual Studio 2005命令提示符"链接启动了命令提示符.
我假设这将包括环境变量中的路径.打印后我发现它没有:
echo …Run Code Online (Sandbox Code Playgroud) 我从http://sourceforge.net/cvs/?group_id=69637下载了IKVM源(http://www.ikvm.net/)
现在我试图让它在Visual Studio 2008中构建并且卡住了.有没有人知道如何构建这个东西的文档,或者甚至可以给我指点?
我已经尝试打开ikvm8.sln,它会打开所有项目,但是尝试构建解决方案会导致一堆"类型或命名空间无法找到"错误.
你可能猜到我不是Visual Studio专家,而是习惯在Eclipse中使用Java.
所以,我正在寻找:逐步说明或指向如何在Visual Studio中构建IKVM的文档的链接.
如果您需要更多信息,请告诉我.谢谢你的帮助!
编辑:我也尝试过手册"MsBuild.exe IKVM8.sln",但也得到了一堆:
JniInterface.cs(30,12): error CS0234: The type or namespace name 'Internal' does not exist in the namespace 'IKVM' (a
re you missing an assembly reference?)
JniInterface.cs(175,38): error CS0246: The type or namespace name 'ClassLoaderWrapper' could not be found (are you mi
ssing a using directive or an assembly reference?)
JniInterface.cs(175,13): error CS0246: The type or namespace name 'ClassLoaderWrapper' could not be found (are you mi …Run Code Online (Sandbox Code Playgroud) windows ×2
c# ×1
c++ ×1
command-line ×1
environment ×1
ikvm ×1
include ×1
path ×1
prompt ×1
scons ×1
visual-c++ ×1