See site in english Voir le site en francais
Website skin:
home  download  forum  link  contact

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

Author Topic: compling UMMU link issue  (Read 723 times)

0 Members and 1 Guest are viewing this topic.

Offline gattico

  • Sr. Member
  • ****
  • Posts: 317
  • Country: United States us
  • Karma: 8
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"


Offline gattico

  • Sr. Member
  • ****
  • Posts: 317
  • Country: United States us
  • Karma: 8
Reply #1 - 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   


Offline gattico

  • Sr. Member
  • ****
  • Posts: 317
  • Country: United States us
  • Karma: 8
Reply #2 - 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