Dan's Orbiter page

Orbiter English => Dan's add-ons => Topic started by: gattico on 18 October 2020, 02:49:13

Title: compling UMMU link issue
Post by: gattico on 18 October 2020, 02:49:13
I am redoing  my addons and getting this:
Severity   Code   Description   Project   Path   File   Line   Suppression State
Error   LNK2001   unresolved external symbol _sscanf   ALPHAMOONBUGGY   D:\orbiter100830\Orbitersdk\samples\mOONBUGGY   D:\orbiter100830\Orbitersdk\samples\mOONBUGGY\UMmuSDK.lib(UMmuSDK.obj)   1   
  No idea why.  Ummusdk is included in the setup and in the header.
Code: [Select]
#include "orbitersdk.h"
#include "UMmuSDK.h"
Title: Re: compling UMMU link issue
Post by: gattico on 25 October 2020, 00:44:08
I am stumped.
  I can not figure why I get this link error:
Severity   Code   Description   Project   Path   File   Line   Suppression State
Error   LNK2001   unresolved external symbol _sscanf   alphabuggy1   D:\orbiter100830\Orbitersdk\samples\MBATEST buggy   D:\orbiter100830\Orbitersdk\samples\MBATEST buggy\UMmuSDK.lib(UMmuSDK.obj)   1   
Title: Re: compling UMMU link issue
Post by: gattico on 25 October 2020, 04:21:38
SOLVED.  I was using vs2019.  I needed to add:
#pragma comment (lib, "legacy_stdio_definitions.lib")
https://stackoverflow.com/questions/32418766/c-unresolved-external-symbol-sprintf-and-sscanf-in-visual-studio-2015