Hate OpenGL moving to DirectX Problems!

I've Been using OpenGL for a while I was able to render a 3d model / parse a wavefront .obj file but I really hated the problems I ran into that were seriously retarded and didn't make sense to me.

So for that reason I've decided to move to DirectX and as always with every new API I run into some stupid problem that I can't figure out on my own.

I'm trying to install DirectX SDK and I get a Error Code S1023

so I thought okay maybe its installed and I just need the include and lib paths from the DirectX SDK folder so I added the include path -I to my makefile

and I get these errors?:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
In file included from C:\Program Files\Microsoft DirectX SDK (June 2010)\Include
/d3d11.h:237:0,
                 from C:\Program Files\Microsoft DirectX SDK (June 2010)\Include
/d3dx11.h:49,
                 from main.cpp:21:
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:286:13: error:
 '__in' has not been declared
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:286:19: error:
 expected ',' or '...' before '&' token
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:293:13: error:
 '__in' has not been declared
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:293:19: error:
 expected ',' or '...' before '&' token
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:299:13: error:
 '__in' has not been declared
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:299:19: error:
 expected ',' or '...' before '&' token
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:307:13: error:
 '__in' has not been declared
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:307:19: error:
 expected ',' or '...' before '&' token
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:425:13: error:
 '__in' has not been declared
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:425:19: error:
 expected ',' or '...' before '&' token
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:554:13: error:
 '__out' has not been declared
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:554:27: error:
 expected ',' or '...' before '*' token
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:558:13: error:
 '__out' has not been declared
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:558:31: error:
 expected ',' or '...' before '*' token
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:565:13: error:
 '__out' has not been declared
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:565:25: error:
 expected ',' or '...' before '*' token
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:884:13: error:
 '__out' has not been declared
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:884:38: error:
 expected ',' or '...' before '*' token
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:888:13: error:
 '__out' has not been declared
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:888:37: error:
 expected ',' or '...' before '*' token
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:1043:13: error
: '__out' has not been declared
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:1043:24: error
: expected ',' or '...' before '*' token
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:1047:13: error
: '__in_opt' has not been declared
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:1047:28: error
: expected ',' or '...' before '*' token
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:1226:13: error
: '__out' has not been declared
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:1226:32: error
: expected ',' or '...' before '*' token
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:1230:13: error
: '__out' has not been declared
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:1230:38: error
: expected ',' or '...' before '*' token
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:1234:13: error
: '__in' has not been declared
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:1234:19: error
: expected ',' or '...' before '&' token
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:1392:13: error
: '__out' has not been declared
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:1392:37: error
: expected ',' or '...' before '*' token
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:1398:13: error
: '__inout' has not been declared
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:1398:27: error
: expected ',' or '...' before '*' token
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:1404:13: error
: '__in' has not been declared
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:1404:40: error
: expected ',' or '...' before '*' token
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:1414:13: error
: '__in' has not been declared
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:1414:28: error
: expected ',' or '...' before '*' token
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:1421:13: error
: '__out' has not been declared
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:1421:52: error
: expected ',' or '...' before '*' token
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:1425:13: error
: '__in' has not been declared
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:1425:44: error
: expected ',' or '...' before '*' token
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:1429:13: error
: '__out' has not been declared
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:1429:39: error
: expected ',' or '...' before '*' token
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:1433:13: error
: '__in' has not been declared
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:1433:32: error
: expected ',' or '...' before '*' token
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:1437:13: error
: '__in' has not been declared
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:1437:32: error
: expected ',' or '...' before '*' token
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:1441:13: error
: '__out' has not been declared
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:1441:42: error
: expected ',' or '...' before '*' token
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:1676:13: error
: '__in' has not been declared
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:1676:19: error
: expected ',' or '...' before '&' token
C:\Program Files\Microsoft DirectX SDK (June 2010)\Include/dxgi.h:1683:13: error
: '__in_opt' has not been declared


There is more errors but due to the text cap I can't show them so I provide a Pastebin link :

http://pastebin.com/bNRZpSrN

Anyways!
Could someone tell me what these errors are and how to fix them pleaaase?.
__in, and indeed __anything, is reserved for compiler specific extensions. I would not be surprised if you could only do anything with DirectX using MS tools. What tools are you using?

That said, I think these particular ones are just compiler hints, so if you #define them as nothing, it might work.

1
2
3
4
#define __inout
#define __in_opt
#define __in
#define __out 

Last edited on
WIN32
Vim
C++
Mingw32 compiler


Aye, well if these are extensions specific to the MS C++ compiler (the one that comes with VS), you'll have problems (as indeed you are).
so what do I do too fix this ? you still didn't get to the resolution :D
1
2
3
4
#define __inout
#define __in_opt
#define __in
#define __out  


or switch to VS.
nevermind I moved back to OpenGL I don't like how DirectX does its model loading,etc :)
Topic archived. No new replies allowed.