- Joined
- Jul 5, 2021
- Messages
- 602
- Reaction score
- 849
- Points
- 108
- Location
- Cislunar Space
- Website
- www.orbiter-forum.com
So I am trying to add UCSO to a project, and no matter wat I do I can't make it compile. This is the error I get:
Google doesn't seem to be any help, so I am kind of stuck here.
After some testing, I narrowed it down to (I think) this piece of code; if I get rid of the line
Any help would be appreciated.
UCSO_API.lib(VesselAPI.obj) : error LNK2019: unresolved external symbol [email protected] referenced in function "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl std::filesystem::_Convert_wide_to_narrow_replace_chars<struct std::char_traits<char>,class std::allocator<char> >(enum __std_code_page,class std::basic_string_view<wchar_t,struct std::char_traits<wchar_t> >,class std::allocator<char> const &)" (??[imath][email protected]?[/imath][email protected]@[email protected]@V?[imath][email protected]@[email protected]@[email protected]@@YA?AV?[/imath][email protected]?[imath][email protected]@[email protected]@V?[/imath][email protected]@[email protected]@[email protected][email protected]@V?[imath][email protected]_WU?[/imath][email protected][email protected]@@@[email protected][email protected]@[email protected]@Z)
Google doesn't seem to be any help, so I am kind of stuck here.
After some testing, I narrowed it down to (I think) this piece of code; if I get rid of the line
ucso = UCSO::Vessel::CreateInstance(this);
, the project compiles, but obviously CTDs Orbiter.
C++:
Cargo::Cargo(OBJHANDLE hVessel, int flightmodel)
: VESSEL4(hVessel, flightmodel)
{
ucso = UCSO::Vessel::CreateInstance(this);
sprintf(buffer, "UCSO version: %s", ucso->GetUCSOVersion());
message = _strdup(buffer);
}
Any help would be appreciated.