Did you include the orbiter library files to the project (Orbiter.lib and OrbiterSDK.lib)?
Yes. This project is based on an older project which I have used to compile .dlls for Orbiter - everything seems to be set up correctly.
-----Posted Added-----
OK, think I sorted out the API read utilities. One thing is giving me a problem, the char statement:
Code:
char mesh_name;
void Helicopter::clbkSetClassCaps (FILEHANDLE cfg)
{
oapiReadItem_string (input_file, "MESH_NAME", mesh_name);
}
This is what I get during linking, I can't make heads or tails of it:
Code:
Linking...
Creating library C:OrbiterModulesHelicopter.lib and object C:OrbiterModulesHelicopter.exp
Helicopter.obj : error LNK2019: unresolved external symbol "void * __cdecl operator new[](unsigned int,struct std::_DebugHeapTag_t const &,char *,int)" (??_U@YAPAXIABU_DebugHeapTag_t@std@@PADH@Z) referenced in function "public: char * __cdecl std::_DebugHeapAllocator<char>::allocate(unsigned int,void const *)" (?allocate@?@D@std@@QAAPADIPBX@Z)
Helicopter.obj : error LNK2019: unresolved external symbol "struct std::_DebugHeapTag_t const & __cdecl std::_DebugHeapTag_func(void)" (?_DebugHeapTag_func@std@@YAABU_DebugHeapTag_t@1@XZ) referenced in function "public: char * __cdecl std::_DebugHeapAllocator<char>::allocate(unsigned int,void const *)" (?allocate@?@D@std@@QAAPADIPBX@Z)
C:OrbiterModulesHelicopter.dll : fatal error LNK1120: 2 unresolved externals