Bonjour,
Je ne peux pas installer VC++, par contre j'ai Code Blocks. J'ai cherché à suivre le tutoriel qui montre comment compiler
l'exemple du shuttlePB en l'adaptant sous Code Blocks. Mais pour l'instant je ne réussi pas ...
Quelqu'un aurait-il l'habitude de programmer sous Code Blocks pour Orbiter ? Jusque là j'ai pu ouvrir le projet ShuttlePB
dans Code Blocks : il contient le fichier .cpp et deux librairies Orbiter. Est-ce tout ce qu'il doit contenir ? La
compilation me renvoie une erreur pour des fonctions "max" et "min" que je change à tout hasard en "fmin" et "fmax", je
déplace aussi la déclaration du "i" en dehors de la boucle for. Une autre série d'erreurs arrivent alors :
||Warning: .drectve `-defaultlib:uuid.lib ' unrecognized|
||Warning: .drectve `-defaultlib:uuid.lib ' unrecognized|
||Warning: .drectve `-defaultlib:msvcirt ' unrecognized|
||Warning: .drectve `-defaultlib:MSVCRT ' unrecognized|
||Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized|
Release\ShuttlePB.o:ShuttlePB.cpp:(.text+0xff)||undefined reference to `VESSEL::SetSize(double) const'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.text+0x116)||undefined reference to `VESSEL::SetEmptyMass(double) const'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.text+0x159)||undefined reference to `VESSEL::SetCW(double, double, double, double) const'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.text+0x16b)||undefined reference to `VESSEL::SetWingAspect(double) const'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.text+0x182)||undefined reference to `VESSEL::SetWingEffectiveness(double) const'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.text+0x209)||undefined reference to `VESSEL::SetCrossSections(VECTOR3 const&) const'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.text+0x28b)||undefined reference to `VESSEL::SetRotDrag(VECTOR3 const&) const'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.text+0x293)||undefined reference to `VESSEL::GetFlightModel() const'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.text+0x2b6)||undefined reference to `VESSEL::SetPitchMomentScale(double) const'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.text+0x2cb)||undefined reference to `VESSEL::SetBankMomentScale(double) const'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.text+0x34a)||undefined reference to `VESSEL::SetPMI(VECTOR3 const&) const'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.text+0x35c)||undefined reference to `VESSEL::SetTrimScale(double) const'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.text+0x3de)||undefined reference to `VESSEL::SetCameraOffset(VECTOR3 const&) const'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.text+0x3ef)||undefined reference to `VESSEL::SetLiftCoeffFunc(double (*)(double)) const'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.text+0x598)||undefined reference to `VESSEL::SetDockParams(VECTOR3 const&, VECTOR3
const&, VECTOR3 const&) const'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.text+0x747)||undefined reference to `VESSEL::SetTouchdownPoints(VECTOR3 const&, VECTOR3
const&, VECTOR3 const&) const'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.text+0x77c)||undefined reference to `VESSEL::CreatePropellantResource(double, double,
double) const'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.text+0x974)||undefined reference to `VESSEL::CreateThruster(VECTOR3 const&, VECTOR3
const&, double, void*, double, double, double) const'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.text+0x99b)||undefined reference to `VESSEL::CreateThrusterGroup(void**, int,
THGROUP_TYPE) const'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.text+0xafd)||undefined reference to `VESSEL::AddExhaust(void*, double, double, VECTOR3
const&, VECTOR3 const&, void*) const'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.text+0xc6b)||undefined reference to `VESSEL::CreateThruster(VECTOR3 const&, VECTOR3
const&, double, void*, double, double, double) const'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.text+0xc95)||undefined reference to `VESSEL::CreateThrusterGroup(void**, int,
THGROUP_TYPE) const'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.text+0xdf1)||undefined reference to `VESSEL::AddExhaust(void*, double, double, VECTOR3
const&, VECTOR3 const&, void*) const'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.text+0xf4d)||undefined reference to `VESSEL::AddExhaust(void*, double, double, VECTOR3
const&, VECTOR3 const&, void*) const'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.text+0xffe)||undefined reference to `VESSEL::AddExhaustStream(void*, VECTOR3 const&,
PARTICLESTREAMSPEC*) const'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.text+0x10af)||undefined reference to `VESSEL::AddExhaustStream(void*, VECTOR3 const&,
PARTICLESTREAMSPEC*) const'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.text+0x115c)||undefined reference to `VESSEL::AddExhaustStream(void*, VECTOR3 const&,
PARTICLESTREAMSPEC*) const'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.text+0x120d)||undefined reference to `VESSEL::AddExhaustStream(void*, VECTOR3 const&,
PARTICLESTREAMSPEC*) const'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.text+0x12be)||undefined reference to `VESSEL::AddExhaustStream(void*, VECTOR3 const&,
PARTICLESTREAMSPEC*) const'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.text+0x14dc)||undefined reference to `VESSEL::CreateThruster(VECTOR3 const&, VECTOR3
const&, double, void*, double, double, double) const'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.text+0x1650)||undefined reference to `VESSEL::CreateThruster(VECTOR3 const&, VECTOR3
const&, double, void*, double, double, double) const'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.text+0x17c4)||undefined reference to `VESSEL::CreateThruster(VECTOR3 const&, VECTOR3
const&, double, void*, double, double, double) const'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.text+0x1938)||undefined reference to `VESSEL::CreateThruster(VECTOR3 const&, VECTOR3
const&, double, void*, double, double, double) const'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.text+0x1aac)||undefined reference to `VESSEL::CreateThruster(VECTOR3 const&, VECTOR3
const&, double, void*, double, double, double) const'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.text+0x283b)||undefined reference to `VESSEL::CreateThrusterGroup(void**, int,
THGROUP_TYPE) const'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.text+0x2871)||undefined reference to `VESSEL::CreateThrusterGroup(void**, int,
THGROUP_TYPE) const'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.text+0x28a7)||undefined reference to `VESSEL::CreateThrusterGroup(void**, int,
THGROUP_TYPE) const'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.text+0x28dd)||undefined reference to `VESSEL::CreateThrusterGroup(void**, int,
THGROUP_TYPE) const'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.text+0x2913)||undefined reference to `VESSEL::CreateThrusterGroup(void**, int,
THGROUP_TYPE) const'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.text+0x2a45)||undefined reference to `VESSEL::AddMesh(char const*, VECTOR3 const*) const'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.text+0x2acd)||undefined reference to `VESSEL2::VESSEL2(void*, int)'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.text+0x5)||undefined reference to `dummy()'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.rdata$_ZTV9ShuttlePB[vtable for ShuttlePB]+0xc)||undefined reference to
`VESSEL2::clbkSaveState(void*)'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.rdata$_ZTV9ShuttlePB[vtable for ShuttlePB]+0x10)||undefined reference to
`VESSEL2::clbkLoadStateEx(void*, void*)'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.rdata$_ZTV9ShuttlePB[vtable for ShuttlePB]+0x14)||undefined reference to
`VESSEL2::clbkSetStateEx(void const*)'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.rdata$_ZTV9ShuttlePB[vtable for ShuttlePB]+0x18)||undefined reference to
`VESSEL2::clbkPostCreation()'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.rdata$_ZTV9ShuttlePB[vtable for ShuttlePB]+0x1c)||undefined reference to
`VESSEL2::clbkFocusChanged(bool, void*, void*)'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.rdata$_ZTV9ShuttlePB[vtable for ShuttlePB]+0x20)||undefined reference to
`VESSEL2::clbkPreStep(double, double, double)'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.rdata$_ZTV9ShuttlePB[vtable for ShuttlePB]+0x24)||undefined reference to
`VESSEL2::clbkPostStep(double, double, double)'|
Release\ShuttlePB.o:ShuttlePB.cpp:(.rdata$_ZTV9ShuttlePB[vtable for ShuttlePB]+0x28)||undefined reference to
`VESSEL2::clbkPlaybackEvent(double, double, char const*, char const*)'|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 5 warnings ===|
Quelqu'un pourrait-il m'aider ?
Merci d'avance.