SDK Question Missing file?

Nemoricus

Addon Developer
Addon Developer
Joined
Jul 7, 2009
Messages
286
Reaction score
0
Points
0
I've been trying to compile my add-on for Orbiter and am running into an issue with unresolved externals.

Log:
Code:
1>------ Build started: Project: VesselParametersMFD, Configuration: Release Win32 ------
1>Linking...
1>   Creating library .\..\..\..\Modules/VesselParametersMFD.lib and object .\..\..\..\Modules/VesselParametersMFD.exp
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual char * __thiscall LaunchpadItem::Name(void)" (?Name@LaunchpadItem@@UAEPADXZ)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual char * __thiscall LaunchpadItem::Description(void)" (?Description@LaunchpadItem@@UAEPADXZ)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall LaunchpadItem::OpenDialog(struct HINSTANCE__ *,struct HWND__ *,int,int (__stdcall*)(struct HWND__ *,unsigned int,unsigned int,long))" (?OpenDialog@LaunchpadItem@@UAE_NPAUHINSTANCE__@@PAUHWND__@@HP6GH1IIJ@Z@Z)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall LaunchpadItem::clbkOpen(struct HWND__ *)" (?clbkOpen@LaunchpadItem@@UAE_NPAUHWND__@@@Z)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall LaunchpadItem::clbkWriteConfig(void)" (?clbkWriteConfig@LaunchpadItem@@UAEHXZ)
1>VesselParametersMFD.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall LaunchpadItem::~LaunchpadItem(void)" (??1LaunchpadItem@@UAE@XZ) referenced in function "public: virtual void * __thiscall LaunchpadItem::`scalar deleting destructor'(unsigned int)" (??_GLaunchpadItem@@UAEPAXI@Z)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CameraMode_Cockpit::Store(char *)" (?Store@CameraMode_Cockpit@@UAEXPAD@Z)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CameraMode_Cockpit::GetDescr(char *,int)" (?GetDescr@CameraMode_Cockpit@@UAEXPADH@Z)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CameraMode_Track::Init(char *)" (?Init@CameraMode_Track@@UAEXPAD@Z)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CameraMode_Track::Store(char *)" (?Store@CameraMode_Track@@UAEXPAD@Z)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CameraMode_Track::GetDescr(char *,int)" (?GetDescr@CameraMode_Track@@UAEXPADH@Z)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CameraMode_Ground::Init(char *)" (?Init@CameraMode_Ground@@UAEXPAD@Z)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CameraMode_Ground::Store(char *)" (?Store@CameraMode_Ground@@UAEXPAD@Z)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CameraMode_Ground::GetDescr(char *,int)" (?GetDescr@CameraMode_Ground@@UAEXPADH@Z)
1>VesselParametersMFD.obj : error LNK2019: unresolved external symbol "void __cdecl dummy(void)" (?dummy@@YAXXZ) referenced in function "void __cdecl calldummy(void)" (?calldummy@@YAXXZ)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall CELBODY::bEphemeris(void)const " (?bEphemeris@CELBODY@@UBE_NXZ)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CELBODY::clbkInit(void *)" (?clbkInit@CELBODY@@UAEXPAX@Z)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CELBODY::clbkEphemeris(double,int,double *)" (?clbkEphemeris@CELBODY@@UAEHNHPAN@Z)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall CELBODY::clbkFastEphemeris(double,int,double *)" (?clbkFastEphemeris@CELBODY@@UAEHNHPAN@Z)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall CELBODY::clbkAtmParam(double,struct ATMPARAM *)" (?clbkAtmParam@CELBODY@@UAE_NNPAUATMPARAM@@@Z)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall VESSEL2::clbkSetClassCaps(void *)" (?clbkSetClassCaps@VESSEL2@@UAEXPAX@Z)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall VESSEL2::clbkSaveState(void *)" (?clbkSaveState@VESSEL2@@UAEXPAX@Z)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall VESSEL2::clbkLoadStateEx(void *,void *)" (?clbkLoadStateEx@VESSEL2@@UAEXPAX0@Z)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall VESSEL2::clbkSetStateEx(void const *)" (?clbkSetStateEx@VESSEL2@@UAEXPBX@Z)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall VESSEL2::clbkPostCreation(void)" (?clbkPostCreation@VESSEL2@@UAEXXZ)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall VESSEL2::clbkFocusChanged(bool,void *,void *)" (?clbkFocusChanged@VESSEL2@@UAEX_NPAX1@Z)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall VESSEL2::clbkPreStep(double,double,double)" (?clbkPreStep@VESSEL2@@UAEXNNN@Z)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall VESSEL2::clbkPostStep(double,double,double)" (?clbkPostStep@VESSEL2@@UAEXNNN@Z)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall VESSEL2::clbkPlaybackEvent(double,double,char const *,char const *)" (?clbkPlaybackEvent@VESSEL2@@UAE_NNNPBD0@Z)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall VESSEL2::clbkVisualCreated(void *,int)" (?clbkVisualCreated@VESSEL2@@UAEXPAXH@Z)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall VESSEL2::clbkVisualDestroyed(void *,int)" (?clbkVisualDestroyed@VESSEL2@@UAEXPAXH@Z)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall VESSEL2::clbkDrawHUD(int,struct HUDPAINTSPEC const *,struct HDC__ *)" (?clbkDrawHUD@VESSEL2@@UAEXHPBUHUDPAINTSPEC@@PAUHDC__@@@Z)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall VESSEL2::clbkRCSMode(int)" (?clbkRCSMode@VESSEL2@@UAEXH@Z)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall VESSEL2::clbkADCtrlMode(unsigned long)" (?clbkADCtrlMode@VESSEL2@@UAEXK@Z)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall VESSEL2::clbkHUDMode(int)" (?clbkHUDMode@VESSEL2@@UAEXH@Z)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall VESSEL2::clbkMFDMode(int,int)" (?clbkMFDMode@VESSEL2@@UAEXHH@Z)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall VESSEL2::clbkNavMode(int,bool)" (?clbkNavMode@VESSEL2@@UAEXH_N@Z)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall VESSEL2::clbkDockEvent(int,void *)" (?clbkDockEvent@VESSEL2@@UAEXHPAX@Z)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall VESSEL2::clbkAnimate(double)" (?clbkAnimate@VESSEL2@@UAEXN@Z)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall VESSEL2::clbkConsumeDirectKey(char *)" (?clbkConsumeDirectKey@VESSEL2@@UAEHPAD@Z)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall VESSEL2::clbkConsumeBufferedKey(unsigned long,bool,char *)" (?clbkConsumeBufferedKey@VESSEL2@@UAEHK_NPAD@Z)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall VESSEL2::clbkLoadGenericCockpit(void)" (?clbkLoadGenericCockpit@VESSEL2@@UAE_NXZ)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall VESSEL2::clbkLoadPanel(int)" (?clbkLoadPanel@VESSEL2@@UAE_NH@Z)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall VESSEL2::clbkPanelMouseEvent(int,int,int,int)" (?clbkPanelMouseEvent@VESSEL2@@UAE_NHHHH@Z)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall VESSEL2::clbkPanelRedrawEvent(int,int,void *)" (?clbkPanelRedrawEvent@VESSEL2@@UAE_NHHPAX@Z)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall VESSEL2::clbkLoadVC(int)" (?clbkLoadVC@VESSEL2@@UAE_NH@Z)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall VESSEL2::clbkVCMouseEvent(int,int,union VECTOR3 &)" (?clbkVCMouseEvent@VESSEL2@@UAE_NHHAATVECTOR3@@@Z)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall VESSEL2::clbkVCRedrawEvent(int,int,void *)" (?clbkVCRedrawEvent@VESSEL2@@UAE_NHHPAX@Z)
1>VesselParametersMFD.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall MFD::~MFD(void)" (??1MFD@@UAE@XZ) referenced in function "public: virtual void * __thiscall MFD::`scalar deleting destructor'(unsigned int)" (??_GMFD@@UAEPAXI@Z)
1>VesselParametersMFD.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall GraphMFD::~GraphMFD(void)" (??1GraphMFD@@UAE@XZ) referenced in function "public: virtual void * __thiscall GraphMFD::`scalar deleting destructor'(unsigned int)" (??_GGraphMFD@@UAEPAXI@Z)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall ExternMFD::SetVessel(void *)" (?SetVessel@ExternMFD@@UAEXPAX@Z)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall ExternMFD::clbkUpdate(void)" (?clbkUpdate@ExternMFD@@UAEXXZ)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall ExternMFD::clbkRefreshDisplay(void *)" (?clbkRefreshDisplay@ExternMFD@@UAEXPAX@Z)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall ExternMFD::clbkRefreshButtons(void)" (?clbkRefreshButtons@ExternMFD@@UAEXXZ)
1>VesselParametersMFD.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall ExternMFD::clbkFocusChanged(void *)" (?clbkFocusChanged@ExternMFD@@UAEXPAX@Z)
1>VesselParametersMFD.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall ExternMFD::~ExternMFD(void)" (??1ExternMFD@@UAE@XZ) referenced in function "public: virtual void * __thiscall ExternMFD::`scalar deleting destructor'(unsigned int)" (??_GExternMFD@@UAEPAXI@Z)
1>VesselParametersMFD.obj : error LNK2019: unresolved external symbol "public: double __thiscall VESSEL::GetPropellantMaxMass(void *)const " (?GetPropellantMaxMass@VESSEL@@QBENPAX@Z) referenced in function "private: double __thiscall VesselParametersMfd::GetWetMass(void)" (?GetWetMass@VesselParametersMfd@@AAENXZ)
1>VesselParametersMFD.obj : error LNK2019: unresolved external symbol "public: void * __thiscall VESSEL::GetPropellantHandleByIndex(unsigned long)const " (?GetPropellantHandleByIndex@VESSEL@@QBEPAXK@Z) referenced in function "private: double __thiscall VesselParametersMfd::GetWetMass(void)" (?GetWetMass@VesselParametersMfd@@AAENXZ)
1>VesselParametersMFD.obj : error LNK2019: unresolved external symbol "public: unsigned long __thiscall VESSEL::GetPropellantCount(void)const " (?GetPropellantCount@VESSEL@@QBEKXZ) referenced in function "private: double __thiscall VesselParametersMfd::GetWetMass(void)" (?GetWetMass@VesselParametersMfd@@AAENXZ)
1>VesselParametersMFD.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl oapiWriteScenario_string(void *,char *,char *)" (__imp_?oapiWriteScenario_string@@YAXPAXPAD1@Z) referenced in function "public: virtual void __thiscall VesselParametersMfd::WriteStatus(void *)const " (?WriteStatus@VesselParametersMfd@@UBEXPAX@Z)
1>VesselParametersMFD.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) bool __cdecl oapiReadScenario_nextline(void *,char * &)" (__imp_?oapiReadScenario_nextline@@YA_NPAXAAPAD@Z) referenced in function "public: virtual void __thiscall VesselParametersMfd::ReadStatus(void *)" (?ReadStatus@VesselParametersMfd@@UAEXPAX@Z)
1>VesselParametersMFD.obj : error LNK2019: unresolved external symbol "public: double __thiscall VESSEL::GetMass(void)const " (?GetMass@VESSEL@@QBENXZ) referenced in function "public: virtual void __thiscall VesselParametersMfd::Update(struct HDC__ *)" (?Update@VesselParametersMfd@@UAEXPAUHDC__@@@Z)
1>VesselParametersMFD.obj : error LNK2019: unresolved external symbol "public: double __thiscall VESSEL::GetEmptyMass(void)const " (?GetEmptyMass@VESSEL@@QBENXZ) referenced in function "public: virtual void __thiscall VesselParametersMfd::Update(struct HDC__ *)" (?Update@VesselParametersMfd@@UAEXPAUHDC__@@@Z)
1>VesselParametersMFD.obj : error LNK2019: unresolved external symbol "struct tagPOINT __cdecl TextXY(struct HDC__ * const,int,int,char const *,...)" (?TextXY@@YA?AUtagPOINT@@QAUHDC__@@HHPBDZZ) referenced in function "public: virtual void __thiscall VesselParametersMfd::Update(struct HDC__ *)" (?Update@VesselParametersMfd@@UAEXPAUHDC__@@@Z)
1>VesselParametersMFD.obj : error LNK2019: unresolved external symbol "public: char * __thiscall VESSEL::GetClassNameA(void)const " (?GetClassNameA@VESSEL@@QBEPADXZ) referenced in function "public: virtual void __thiscall VesselParametersMfd::Update(struct HDC__ *)" (?Update@VesselParametersMfd@@UAEXPAUHDC__@@@Z)
1>VesselParametersMFD.obj : error LNK2019: unresolved external symbol "public: char * __thiscall VESSEL::GetName(void)const " (?GetName@VESSEL@@QBEPADXZ) referenced in function "public: virtual void __thiscall VesselParametersMfd::Update(struct HDC__ *)" (?Update@VesselParametersMfd@@UAEXPAUHDC__@@@Z)
1>VesselParametersMFD.obj : error LNK2019: unresolved external symbol "unsigned long __cdecl SetMFDColor(struct HDC__ * const,unsigned long)" (?SetMFDColor@@YAKQAUHDC__@@K@Z) referenced in function "public: virtual void __thiscall VesselParametersMfd::Update(struct HDC__ *)" (?Update@VesselParametersMfd@@UAEXPAUHDC__@@@Z)
1>VesselParametersMFD.obj : error LNK2019: unresolved external symbol "public: void __thiscall MFD::Title(struct HDC__ *,char const *)const " (?Title@MFD@@QBEXPAUHDC__@@PBD@Z) referenced in function "public: virtual void __thiscall VesselParametersMfd::Update(struct HDC__ *)" (?Update@VesselParametersMfd@@UAEXPAUHDC__@@@Z)
1>VesselParametersMFD.obj : error LNK2019: unresolved external symbol "void __cdecl MFDUpdate(struct HDC__ * const,int,int)" (?MFDUpdate@@YAXQAUHDC__@@HH@Z) referenced in function "public: virtual void __thiscall VesselParametersMfd::Update(struct HDC__ *)" (?Update@VesselParametersMfd@@UAEXPAUHDC__@@@Z)
1>VesselParametersMFD.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) bool __cdecl oapiUnregisterMFDMode(int)" (__imp_?oapiUnregisterMFDMode@@YA_NH@Z) referenced in function "public: __thiscall VesselParametersMfdManager::~VesselParametersMfdManager(void)" (??1VesselParametersMfdManager@@QAE@XZ)
1>VesselParametersMFD.obj : error LNK2019: unresolved external symbol "public: __thiscall MFD::MFD(unsigned long,unsigned long,class VESSEL *)" (??0MFD@@QAE@KKPAVVESSEL@@@Z) referenced in function "public: __thiscall VesselParametersMfd::VesselParametersMfd(unsigned int,unsigned long,unsigned long,class VESSEL *)" (??0VesselParametersMfd@@QAE@IKKPAVVESSEL@@@Z)
1>VesselParametersMFD.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __cdecl oapiRegisterMFDMode(struct MFDMODESPEC &)" (__imp_?oapiRegisterMFDMode@@YAHAAUMFDMODESPEC@@@Z) referenced in function "public: __thiscall VesselParametersMfdManager::VesselParametersMfdManager(struct HINSTANCE__ *)" (??0VesselParametersMfdManager@@QAE@PAUHINSTANCE__@@@Z)
1>.\..\..\..\Modules/VesselParametersMFD.dll : fatal error LNK1120: 72 unresolved externals
1>Build log was saved at "file://c:\Documents and Settings\Blake\Desktop\Downloads\Orbiter\Orbiter 060929\OrbiterSdk\Samples\ShuttlePB\Release\BuildLog.htm"
1>VesselParametersMFD - 73 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

It looks like I may be missing a file for compiling my add-on. Does anyone have any idea what that might be? Or might it be something else entirely?
 
Judging by the names of the links that are failing I'd say that orbiter.lib is not being linked in. There may be two reasons for this:

1. Linker paths set incorrectly. Check that the path to orbiter.lib is in your project's Linker|General|Additional Library Directories settings. Also, it may help to add orbiter.lib into the Linker|Input|Additional Dependencies setting.

2. Your runtime libraries may not be set up properly. Have you ignored msvcirt.lib?
 
You need to add the path to orbitersdk.lib to the Library Directories, and you need to lits orbitersdk.lib as a dependency.
 
Okay, through some addition of library dependencies, I've cut the errors down to one:

Code:
1>LINK : fatal error LNK1104: cannot open file 'LIBC.lib'

Now what?
 
That file should be in the Windows SDK library directory. Add that path to Linker|General|Additional Library Directories.
 
I think that I already have:

Code:
C:\Program Files\Microsoft Platform SDK\lib

Or is that the wrong path?
 
Another error:

Code:
1>LINK : fatal error LNK1104: cannot open file 'msvcirt.lib'

But I already have this file in my ignore list.
 
Can you post, as an attachment, the .vcproj file? I can't open it in Visual Studio because I am using VS 2005, but it is an XML and I can see your settings in a text editor.
 
I don't seem to have a .vcproj file anywhere.

However, these are the full contents of the Build Log:

Code:
   [FONT=arial][SIZE=+3] Build Log [/SIZE][/FONT]  [B]Build started: Project: VesselParametersMFD, Configuration: Release|Win32[/B]


[FONT=arial][SIZE=+2] Command Lines [/SIZE][/FONT]  Creating temporary file "c:\Documents and Settings\Blake\Desktop\Downloads\Orbiter\Orbiter 060929\OrbiterSdk\Samples\ShuttlePB\Release\RSP00000415481344.rsp" with contents
[
/OUT:".\..\..\..\Modules/VesselParametersMFD.dll" /INCREMENTAL:NO /LIBPATH:"C:\Documents and Settings\Blake\Desktop\Downloads\Orbiter\Orbiter 060929\OrbiterSdk\lib" /LIBPATH:"C:\Program Files\Microsoft Platform SDK\lib" /LIBPATH:"C:\Documents and Settings\Blake\Desktop\Downloads\Orbiter\MFD Samples\MFDlib-1_02\OrbiterSDK\lib" /DLL /MANIFEST /MANIFESTFILE:".\Release\VesselParametersMFD.dll.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /NODEFAULTLIB:"LIBC.lib msvcirt.lib msvcrt.lib" /SUBSYSTEM:WINDOWS /DYNAMICBASE:NO /MACHINE:X86 orbitersdk.lib kernel32.lib user32.lib gdi32.lib orbiter.lib MFDlib.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib

".\Release\VesselParametersMFD.obj"
]
Creating command line "link.exe @"c:\Documents and Settings\Blake\Desktop\Downloads\Orbiter\Orbiter 060929\OrbiterSdk\Samples\ShuttlePB\Release\RSP00000415481344.rsp" /NOLOGO /ERRORREPORT:PROMPT"
[FONT=arial][SIZE=+2] Output Window [/SIZE][/FONT]  Linking...
LINK : fatal error LNK1104: cannot open file 'msvcirt.lib'
[FONT=arial][SIZE=+2] Results [/SIZE][/FONT]  Build log was saved at "file://c:\Documents and Settings\Blake\Desktop\Downloads\Orbiter\Orbiter 060929\OrbiterSdk\Samples\ShuttlePB\Release\BuildLog.htm"
VesselParametersMFD - 1 error(s), 0 warning(s)
 
What setting do you have for C/C++|Code Generation|Runtime Library? I am guessing "Multi-threaded DLL" based on that output. Switch it to "Multi-threaded". Post the Build Log again if more errors.
 
Code:
[FONT=arial][SIZE=+3]Build Log [/SIZE][/FONT]  [B]Build started: Project: VesselParametersMFD, Configuration: Release|Win32[/B]


[FONT=arial][SIZE=+2] Command Lines [/SIZE][/FONT]  Creating temporary file "c:\Documents and Settings\Blake\Desktop\Downloads\Orbiter\Orbiter 060929\OrbiterSdk\Samples\ShuttlePB\Release\RSP00000515483328.rsp" with contents
[
/O2 /Ob1 /I "C:\Documents and Settings\Blake\Desktop\Downloads\Orbiter\MFD Samples\MFDlib-1_02\OrbiterSDK\include" /I "C:\Documents and Settings\Blake\Desktop\Downloads\Orbiter\Orbiter 060929\OrbiterSdk\include" /I "C:\Program Files\Microsoft Platform SDK\Include" /I "..\..\include" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_VC80_UPGRADE=0x0600" /D "_WINDLL" /GF /FD /EHsc /MT /Gy /Fp".\Release/ShuttlePB.pch" /Fo".\Release/" /Fd".\Release/" /W3 /c /TP "..\..\..\..\Orbiter Projects\Vessel Parameters MFD\VesselParametersMFD.cpp"
]
Creating command line "cl.exe @"c:\Documents and Settings\Blake\Desktop\Downloads\Orbiter\Orbiter 060929\OrbiterSdk\Samples\ShuttlePB\Release\RSP00000515483328.rsp" /nologo /errorReport:prompt"
Creating temporary file "c:\Documents and Settings\Blake\Desktop\Downloads\Orbiter\Orbiter 060929\OrbiterSdk\Samples\ShuttlePB\Release\RSP00000615483328.rsp" with contents
[
/OUT:".\..\..\..\Modules/VesselParametersMFD.dll" /INCREMENTAL:NO /LIBPATH:"C:\Documents and Settings\Blake\Desktop\Downloads\Orbiter\Orbiter 060929\OrbiterSdk\lib" /LIBPATH:"C:\Program Files\Microsoft Platform SDK\lib" /LIBPATH:"C:\Documents and Settings\Blake\Desktop\Downloads\Orbiter\MFD Samples\MFDlib-1_02\OrbiterSDK\lib" /DLL /MANIFEST /MANIFESTFILE:".\Release\VesselParametersMFD.dll.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /NODEFAULTLIB:"LIBC.lib msvcirt.lib msvcrt.lib" /SUBSYSTEM:WINDOWS /DYNAMICBASE:NO /MACHINE:X86 orbitersdk.lib kernel32.lib user32.lib gdi32.lib orbiter.lib MFDlib.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib

".\Release\VesselParametersMFD.obj"
]
Creating command line "link.exe @"c:\Documents and Settings\Blake\Desktop\Downloads\Orbiter\Orbiter 060929\OrbiterSdk\Samples\ShuttlePB\Release\RSP00000615483328.rsp" /NOLOGO /ERRORREPORT:PROMPT"
[FONT=arial][SIZE=+2] Output Window [/SIZE][/FONT]  Compiling...
VesselParametersMFD.cpp
Linking...
LINK : fatal error LNK1104: cannot open file 'msvcirt.lib'
[FONT=arial][SIZE=+2] Results [/SIZE][/FONT]  Build log was saved at "file://c:\Documents and Settings\Blake\Desktop\Downloads\Orbiter\Orbiter 060929\OrbiterSdk\Samples\ShuttlePB\Release\BuildLog.html
VesselParametersMFD - 1 error(s), 0 warning(s)

It doesn't seem to have made a difference.
 
Add "msvcirt.lib" to the "Ignore specific library" line, as detailed in the wiki.
 
Obviously not. Otherwise:
Code:
LINK : fatal error LNK1104: cannot open file 'msvcirt.lib'
would not appear in the log.
Double check that you have made the right setting for the right mode.
 
I do have it ignored, as evidenced by the following picture:

94863189.png


It doesn't seem to make a difference.

I also have it set to multithreaded mode (/MT).
 
I am.

I'm using VC++ 2008, if that makes a difference.
 
This is very strange indeed.
I hope someone more experienced can sort this out.
 
Quite irksome, too. I'm fairly sure that the code itself is at a point where it can be tested, but I can't find any additional problems without actually using it in Orbiter.
 
Back
Top