Orbiter English > Dan's add-ons

compling UMMU link issue

(1/1)

gattico:
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: ---#include "orbitersdk.h"
#include "UMmuSDK.h"
--- End code ---

gattico:
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   

gattico:
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

Navigation

[0] Message Index

Go to full version