Dan's Orbiter page
Orbiter English => Dan's add-ons => Topic started 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.
#include "orbitersdk.h"
#include "UMmuSDK.h"
-
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
-
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