M
MaciekP42
Guest
Im using Windows 7 Home Premium as my development machine and my compiler is Visual Studio 2013 Express. I was writing a game using DirectX11. I installed Microsoft DirectX SDK (June 2010) with DirectX tool kit from http://directxtk.codeplex.com/ . When i am compiling my application im getting following errors:
1>c:\program files (x86)\windows kits\8.1\include\shared\dxgi1_2.h(1271): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\windows kits\8.1\include\shared\dxgi1_2.h(1271): error C2143: syntax error : missing , before *
1>c:\program files (x86)\windows kits\8.1\include\shared\dxgi1_2.h(1275): error C2061: syntax error : identifier DXGI_RGBA
I made everything right (i think so). In Additional Include Directories i have <my DX SDK folder>\Include and <my DXTK Folder>\Inc.
In Additional Library Directories i have <my DX SDK folder>\Lib\x86
Heres my #includes and dependencies
#pragma once
// Include basic header files
#include <Windows.h> // Windows headers
#include <d3d11.h> // DirectX11 and 10 Headers
#include <d3dx11.h>
#include <d3dx10.h>
#include <SpriteBatch.h>
// Pragma comment libs
#pragma comment(lib, "d3d11.lib")
#pragma comment(lib, "d3dx11.lib")
#pragma comment(lib, "d3dx10.lib")
If anyone can help ill be really thankful
Continue reading...
1>c:\program files (x86)\windows kits\8.1\include\shared\dxgi1_2.h(1271): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\windows kits\8.1\include\shared\dxgi1_2.h(1271): error C2143: syntax error : missing , before *
1>c:\program files (x86)\windows kits\8.1\include\shared\dxgi1_2.h(1275): error C2061: syntax error : identifier DXGI_RGBA
I made everything right (i think so). In Additional Include Directories i have <my DX SDK folder>\Include and <my DXTK Folder>\Inc.
In Additional Library Directories i have <my DX SDK folder>\Lib\x86
Heres my #includes and dependencies
#pragma once
// Include basic header files
#include <Windows.h> // Windows headers
#include <d3d11.h> // DirectX11 and 10 Headers
#include <d3dx11.h>
#include <d3dx10.h>
#include <SpriteBatch.h>
// Pragma comment libs
#pragma comment(lib, "d3d11.lib")
#pragma comment(lib, "d3dx11.lib")
#pragma comment(lib, "d3dx10.lib")
If anyone can help ill be really thankful
Continue reading...