Du bist nicht angemeldet.

Stilllegung des Forums
Das Forum wurde am 05.06.2023 nach über 20 Jahren stillgelegt (weitere Informationen und ein kleiner Rückblick).
Registrierungen, Anmeldungen und Postings sind nicht mehr möglich. Öffentliche Inhalte sind weiterhin zugänglich.
Das Team von spieleprogrammierer.de bedankt sich bei der Community für die vielen schönen Jahre.
Wenn du eine deutschsprachige Spieleentwickler-Community suchst, schau doch mal im Discord und auf ZFX vorbei!

Werbeanzeige

killmichnich

unregistriert

1

25.04.2010, 11:37

Compiler: MSVc++ 2005/2008 -> GNU GCC Compiler

Hiho,
ich hab da ein kleines Problem:
Ich benutze für gewöhnlich den Compiler von der Microsoft Visual C++ 2008 Express Edition in Code::Blocks. Jetzt müsste ich aber wegen eines Schulprojekts entweder auf den GNU GCC Compiler umsteigen, was offenbar ein großes Problem darstellt, oder ich müsste es schaffen, den MSVC++ Compiler auf den Stick zu bringen.
Hierzu meine Fragen:
- gibt es ieine Möglichkeit, den MSVC++ Compiler als "portable app" mitzunehmen, aufm usb stick z.B.?
- wenn ja, was genau muss ich dazu tun?
- wenn es diese Möglichkeit nicht gibt, hab ich mir überlegt auf den GNU GCC Compiler umzusteigen, da der von meinem USB Stick aus läuft, ich krieg nur jede Fehlermeldungen, wenn ich mein derzeitiges projekt auf diesen Compiler umstelle. Was mach ich da falsch/Wie mach ichs richtig? ôO

Würde mich sehr über Hilfe freuen ^^

MfG Killmichnich

2

25.04.2010, 11:55

- wenn es diese Möglichkeit nicht gibt, hab ich mir überlegt auf den GNU GCC Compiler umzusteigen, da der von meinem USB Stick aus läuft, ich krieg nur jede Fehlermeldungen, wenn ich mein derzeitiges projekt auf diesen Compiler umstelle. Was mach ich da falsch/Wie mach ichs richtig? ôO
Welche Fehlermeldungen bekommst du denn?

Markus

jokester

Treue Seele

Beiträge: 125

Wohnort: Mainz

  • Private Nachricht senden

3

25.04.2010, 11:58

Der VS-Compiler kompiliert einiges, was nicht standardkonform ist. void main() z.B. oder fehlendes typename bei Templateabhängigen typnamen. (Und umgekehrt kompiliert der GCC einiges, was VS nicht annimmt.) Kannst ja mal Teile des Codes zeigen, die nicht kompiliert werden, dann kann man dir eher helfen. ;)
"There is a theory which states that if ever anyone discovers exactly what the Universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarre and inexplicable. There is another theory which states that this has already happened" -- Douglas Adams.

killmichnich

unregistriert

4

25.04.2010, 12:27

Also Fehler wenn ich kompilieren will ...

Quellcode

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
-------------- Build: Release in Demo ---------------

Compiling: CollisionManager.cpp
In file included from C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:28,
                from C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/windef.h:177,
                from C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/excpt.h:20,
                from C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/windows.h:151,
                from C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/rpc.h:16,
                from C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/objbase.h:13,
                from C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/d3d9.h:40,
                from C:\Users\Daniel\Desktop\Demo\MyFramework/Sprite.h:2,
                from C:\Users\Daniel\Desktop\Demo\CollisionManager.h:7,
                from C:\Users\Daniel\Desktop\Demo\CollisionManager.cpp:1:
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/specstrings.h:9:19: sal.h: No such file or directory
In file included from C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/specstrings.h:267,
                from C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:28,
                from C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/windef.h:177,
                from C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/excpt.h:20,
                from C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/windows.h:151,
                from C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/rpc.h:16,
                from C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/objbase.h:13,
                from C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/d3d9.h:40,
                from C:\Users\Daniel\Desktop\Demo\MyFramework/Sprite.h:2,
                from C:\Users\Daniel\Desktop\Demo\CollisionManager.h:7,
                from C:\Users\Daniel\Desktop\Demo\CollisionManager.cpp:1:
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/specstrings_adt.h:16: error: expected initializer before "char"
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/specstrings_adt.h:17: error: expected initializer before "unsigned"
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/specstrings_adt.h:18: error: expected initializer before "const"
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/specstrings_adt.h:19: error: expected initializer before "char"
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/specstrings_adt.h:20: error: expected initializer before "const"
In file included from C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/windef.h:177,
                from C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/excpt.h:20,
                from C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/windows.h:151,
                from C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/rpc.h:16,
                from C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/objbase.h:13,
                from C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/d3d9.h:40,
                from C:\Users\Daniel\Desktop\Demo\MyFramework/Sprite.h:2,
                from C:\Users\Daniel\Desktop\Demo\CollisionManager.h:7,
                from C:\Users\Daniel\Desktop\Demo\CollisionManager.cpp:1:
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:297: error: `__nullterminated' does not name a type
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:298: error: `__nullterminated' does not name a type
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:299: error: expected initializer before "const"
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:300: error: `__nullterminated' does not name a type
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:301: error: expected initializer before "const"
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:302: error: `__nullterminated' does not name a type
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:303: error: expected initializer before "const"
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:356: error: `__nullterminated' does not name a type
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:357: error: `__nullterminated' does not name a type
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:358: error: expected initializer before "const"
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:359: error: expected initializer before "const"
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:360: error: `__nullterminated' does not name a type
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:390: error: `LPSTR' does not name a type
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:391: error: `LPCSTR' does not name a type
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:425: error: typedef `__success' is initialized (use __typeof__ instead)
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:425: error: expected primary-expression before "return"
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:425: error: expected `,' or `;' before "long"
In file included from C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/windef.h:177,
                from C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/excpt.h:20,
                from C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/windows.h:151,
                from C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/rpc.h:16,
                from C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/objbase.h:13,
                from C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/d3d9.h:40,
                from C:\Users\Daniel\Desktop\Demo\MyFramework/Sprite.h:2,
                from C:\Users\Daniel\Desktop\Demo\CollisionManager.h:7,
                from C:\Users\Daniel\Desktop\Demo\CollisionManager.cpp:1:
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:734:2: #error Must define a target architecture.
In file included from C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/windef.h:177,
                from C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/excpt.h:20,
                from C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/windows.h:151,
                from C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/rpc.h:16,
                from C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/objbase.h:13,
                from C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/d3d9.h:40,
                from C:\Users\Daniel\Desktop\Demo\MyFramework/Sprite.h:2,
                from C:\Users\Daniel\Desktop\Demo\CollisionManager.h:7,
                from C:\Users\Daniel\Desktop\Demo\CollisionManager.cpp:1:
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:11178: error: typedef `PRTL_RUN_ONCE_INIT_FN' is initialized (use __typeof__ instead)
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:11179: error: `__inout' was not declared in this scope
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:11180: error: `__inout_opt' was not declared in this scope
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:11181: error: `__deref_opt_out_opt' was not declared in this scope
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:11190: error: variable or field `RtlRunOnceInitialize' declared void
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:11191: error: `__out' was not declared in this scope
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:11198: error: `__inout' was not declared in this scope
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:11199: error: `__in' was not declared in this scope
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:11200: error: `__inout_opt' was not declared in this scope
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:11201: error: `__deref_opt_out_opt' was not declared in this scope
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:11202: error: initializer expression list treated as compound expression
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:11206: error: `__inout' was not declared in this scope
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:11207: error: `__in' was not declared in this scope
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:11208: error: `__deref_opt_out_opt' was not declared in this scope
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:11209: error: initializer expression list treated as compound expression
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:11213: error: `__inout' was not declared in this scope
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:11214: error: `__in' was not declared in this scope
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:11215: error: `__in_opt' was not declared in this scope
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:11216: error: initializer expression list treated as compound expression
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:11251: error: `__in' was not declared in this scope
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:11252: error: `__in' was not declared in this scope
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:11253: error: `FramesToCapture' was not declared in this scope
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:11253: error: `__out_ecount' was not declared in this scope
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:11254: error: `__out_opt' was not declared in this scope
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:11255: error: initializer expression list treated as compound expression
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/winnt.h:11262: error: variable or field `RtlCaptureContext' declared void

Zu meinem Code:
Ganz "normale" DirectX Anwendung, DirectX wird initialisiert, n paar Texturen geladen und n paar einfache Sprites gezeichnet ... nix besondres.
Den Fehlermeldungen nach zu urteilen liegts glaub eh nich daran, sondern an iner externen Datei, oder?

Tobiking

1x Rätselkönig

  • Private Nachricht senden

5

25.04.2010, 14:36

Man braucht für MingW angepasste DirectX Header. Ich hab die selber noch nie benutzt, daher kann ich dir nicht sagen wo man die herbekommt.

Werbeanzeige