Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xcode/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xcode 使用std::function<;无效>;关于visual studio 2013_Xcode_C++11_Visual Studio 2013_Sfml - Fatal编程技术网

Xcode 使用std::function<;无效>;关于visual studio 2013

Xcode 使用std::function<;无效>;关于visual studio 2013,xcode,c++11,visual-studio-2013,sfml,Xcode,C++11,Visual Studio 2013,Sfml,我正在将我的项目从mac os x(xcode)转换到windows(visual studio 2013)。 但是当我尝试使用std::函数时遇到了问题。 我举了一个例子 std::function<void()> processFunc; std::函数processFunc; 但我有几个错误: Error 1 error C2039: 'function' : is not a member of 'std' ...github\oglengine\engine\

我正在将我的项目从mac os x(xcode)转换到windows(visual studio 2013)。 但是当我尝试使用std::函数时遇到了问题。 我举了一个例子

std::function<void()> processFunc;
std::函数processFunc;
但我有几个错误:

Error   1   error C2039: 'function' : is not a member of 'std'  ...github\oglengine\engine\game.h   39  1   Engine
Error   2   error C2143: syntax error : missing ';' before '<'  ...github\oglengine\engine\game.h   39  1   Engine
Error   3   error C4430: missing type specifier - int assumed. Note: C++ does not support default-int   ...github\oglengine\engine\game.h   39  1   Engine
Error 1 Error C2039:'function':不是'std'…github\oglengine\engine\game.h 39 1引擎的成员

错误2错误C2143:语法错误:缺少“;”在“之前,我认为你需要在VS