General Question Errors while compiling for 2010-P1

I don't have that file:
C:\ORBITER2010P1\Orbitersdk\resources\orbiterroot .vsprops
Yes, you have that file. It's on the screenshot you posted, though you have hidden file extensions.

As for errors, they are the same as at the beginning.
 
Yes. You are right I saw that. So is the the cpp or set up?
 
Well I copied the shuttlepb.vcproj file over and change the shuttlepb to eagle3 and still get those errors. I was able though to compile the shuttlepb so it might be my cpp and h. Not sure what the error is though.

Attached in a zip is the cpp and 2 h files.
 
Last edited:
Ok try it in 2010. Changed the orbiter directory for the include and libraies
But still get these errors
EAGLE3.cpp
C:\orbiter2010\Orbitersdk\include\VesselAPI.h(3526) : error C2146: syntax error : missing ';' before identifier 'GetDevMesh'
C:\orbiter2010\Orbitersdk\include\VesselAPI.h(3526) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\orbiter2010\Orbitersdk\include\VesselAPI.h(3526) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\orbiter2010\Orbitersdk\include\VesselAPI.h(3526) : warning C4183: 'GetDevMesh': missing return type; assumed to be a member function returning 'int'
C:\orbiter2010\Orbitersdk\include\VesselAPI.h(3805) : error C2061: syntax error : identifier 'ANIMATION'
C:\orbiter2010\Orbitersdk\include\VesselAPI.h(4506) : error C2061: syntax error : identifier 'EXHAUSTSPEC'
C:\orbiter2010\Orbitersdk\include\VesselAPI.h(4544) : error C2061: syntax error : identifier 'EXHAUSTSPEC'
C:\orbiter2010\Orbitersdk\include\VesselAPI.h(5635) : error C2061: syntax error : identifier 'PANELHANDLE'
C:\orbiter2010\Orbitersdk\include\VesselAPI.h(5650) : error C2061: syntax error : identifier 'PANELHANDLE'
C:\orbiter2010\Orbitersdk\include\VesselAPI.h(5669) : error C2061: syntax error : identifier 'PANELHANDLE'
C:\orbiter2010\Orbitersdk\include\VesselAPI.h(5690) : error C2061: syntax error : identifier 'PANELHANDLE'
C:\orbiter2010\Orbitersdk\include\VesselAPI.h(5714) : error C2061: syntax error : identifier 'PANELHANDLE'
C:\orbiter2010\Orbitersdk\include\VesselAPI.h(5714) : error C2535: 'int VESSEL3::RegisterPanelArea(void)' : member function already defined or declared
C:\orbiter2010\Orbitersdk\include\VesselAPI.h(5690) : see declaration of 'VESSEL3::RegisterPanelArea'
C:\orbiter2010\Orbitersdk\include\VesselAPI.h(5784) : error C2061: syntax error : identifier 'PANELHANDLE'
C:\orbiter2010\Orbitersdk\include\VesselAPI.h(5831) : error C2653: 'oapi' : is not a class or namespace name
C:\orbiter2010\Orbitersdk\include\VesselAPI.h(5831) : error C2061: syntax error : identifier 'Sketchpad'
C:\orbiter2010\Orbitersdk\include\MFDAPI.h(329) : error C2653: 'oapi' : is not a class or namespace name
C:\orbiter2010\Orbitersdk\include\MFDAPI.h(329) : error C2061: syntax error : identifier 'Sketchpad'
C:\orbiter2010\Orbitersdk\include\MFDAPI.h(340) : error C2653: 'oapi' : is not a class or namespace name
C:\orbiter2010\Orbitersdk\include\MFDAPI.h(340) : error C2061: syntax error : identifier 'Sketchpad'
C:\orbiter2010\Orbitersdk\include\MFDAPI.h(366) : error C2653: 'oapi' : is not a class or namespace name
C:\orbiter2010\Orbitersdk\include\MFDAPI.h(366) : error C2143: syntax error : missing ';' before '*'
C:\orbiter2010\Orbitersdk\include\MFDAPI.h(366) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\orbiter2010\Orbitersdk\include\MFDAPI.h(366) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\orbiter2010\Orbitersdk\include\MFDAPI.h(366) : warning C4183: 'GetDefaultPen': missing return type; assumed to be a member function returning 'int'
C:\orbiter2010\Orbitersdk\include\MFDAPI.h(383) : error C2653: 'oapi' : is not a class or namespace name
C:\orbiter2010\Orbitersdk\include\MFDAPI.h(383) : error C2143: syntax error : missing ';' before '*'
C:\orbiter2010\Orbitersdk\include\MFDAPI.h(383) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\orbiter2010\Orbitersdk\include\MFDAPI.h(383) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\orbiter2010\Orbitersdk\include\MFDAPI.h(383) : warning C4183: 'GetDefaultFont': missing return type; assumed to be a member function returning 'int'
.\EAGLE3.cpp(1385) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
.\EAGLE3.cpp(1488) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
Build log was saved at "file://c:\orbiter2010\Orbitersdk\samples\EAGLE3\Release\BuildLog.htm"
EAGLE3 - 27 error(s), 5 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========



/Os /Oy /GT /GL /I "C:\orbiter2010\Orbitersdk\include" /I "C:\Program Files\Microsoft Platform SDK\Include" /I "C:\orbiter2010\Orbitersdk\samples\EAGLE3\..\..\..\Orbitersdk\include" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_USRDLL" /D "_CRT_SECURE_NO_WARNINGS" /D "_VC80_UPGRADE=0x0600" /D "_WINDLL" /GF /FD /EHsc /MD /GS- /Fo"./Release\\" /Fd"./Release\vc90.pdb" /W3 /nologo /c /TP /errorReport:prompt
 
This to me looks like the kind of errors you get spat out if you forget to #include orbitersdk.h in your .h file. It only needs to be done once, and in fact you'll wind up with errors occasionally if it's done more than once, hence the "include guard" commonly seen in header files (Usually the #ifndef #define #endif variety, though I use the pragma once variant which also works).

Given the amount of issues you've had lately, gattispilot, I cannot recommend to you enough spending some quality time with a C++ reference manual or tutorial. Most of the problems you're running into are, to be totally honest, fundamental errors of understanding of the basics of not only C++, but pretty much any coding language. You seem to be at a total loss for what to do in any situation.

This is not a bad thing, until you start taking on things which are beyond those skills. Spend some time reading up on the basics of coding principles, the structure of the language, how programs flow from line of code to line of code, and you will find yourself vastly better equipped to deal with these kinds of problems.

[/2 cents].
 
Thanks. It was in the .cpp and put it in the h and commented it out in the cpp but the same result


Cpp
Code:
#define ORBITER_MODULE
//#include "orbitersdk.h"
#include "EAGLE3.h"
#include "EAGLE3MESH.h"
#include "OrbiterSoundSDK35.h"
VISHANDLE MainExternalMeshVisual = 0;

h
Code:
#include "orbitersdk.h"
#include "UMmuSDK.h"
 
Yeah got it to work now to debug:)

Thanks to Doug and Orb for the help
 
Back
Top