- Joined
- Sep 22, 2008
- Messages
- 602
- Reaction score
- 2
- Points
- 0
I was curious to see how the "famous" Orbiter API worked, so I downloaded the SDK, wrote a simple DLL (only DLLMain and InitModule) and compiled it. But I get various errors from the SDK's include files:
||=== Test, Debug ===|
C:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\include\c++\3.4.5\backward\backward_warning.h|32|warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.|
D:\Test\OrbiterAPI.h|109|error: ISO C++ prohibits anonymous structs|
D:\Test\OrbiterAPI.h|114|error: ISO C++ prohibits anonymous structs|
D:\Test\OrbiterAPI.h|119|error: ISO C++ prohibits anonymous structs|
D:\Test\OrbiterAPI.h|471|error: comma at end of enumerator list|
D:\Test\OrbiterAPI.h|1471|warning: no newline at end of file|
D:\Test\CelBodyAPI.h|56|warning: multi-line comment|
D:\Test\CelBodyAPI.h|77|warning: no newline at end of file|
D:\Test\VesselAPI.h||In member function `bool AnimState::Move(double)':|
D:\Test\VesselAPI.h|437|error: `max' was not declared in this scope|
D:\Test\VesselAPI.h|437|warning: unused variable 'max'|
D:\Test\VesselAPI.h|439|error: `min' was not declared in this scope|
D:\Test\VesselAPI.h|439|warning: unused variable 'min'|
D:\Test\Orbitersdk.h|17|warning: no newline at end of file|
||=== Build finished: 6 errors, 7 warnings ===|
As you can see, I'm using the latest MinGW on C++ mode. Have anyone experienced this?
||=== Test, Debug ===|
C:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\include\c++\3.4.5\backward\backward_warning.h|32|warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.|
D:\Test\OrbiterAPI.h|109|error: ISO C++ prohibits anonymous structs|
D:\Test\OrbiterAPI.h|114|error: ISO C++ prohibits anonymous structs|
D:\Test\OrbiterAPI.h|119|error: ISO C++ prohibits anonymous structs|
D:\Test\OrbiterAPI.h|471|error: comma at end of enumerator list|
D:\Test\OrbiterAPI.h|1471|warning: no newline at end of file|
D:\Test\CelBodyAPI.h|56|warning: multi-line comment|
D:\Test\CelBodyAPI.h|77|warning: no newline at end of file|
D:\Test\VesselAPI.h||In member function `bool AnimState::Move(double)':|
D:\Test\VesselAPI.h|437|error: `max' was not declared in this scope|
D:\Test\VesselAPI.h|437|warning: unused variable 'max'|
D:\Test\VesselAPI.h|439|error: `min' was not declared in this scope|
D:\Test\VesselAPI.h|439|warning: unused variable 'min'|
D:\Test\Orbitersdk.h|17|warning: no newline at end of file|
||=== Build finished: 6 errors, 7 warnings ===|
As you can see, I'm using the latest MinGW on C++ mode. Have anyone experienced this?
