Forums

Sega Master System / Mark III / Game Gear
SG-1000 / SC-3000 / SF-7000 / OMV
Home - Forums - Games - Scans - Maps - Cheats - Credits
Music - Videos - Development - Hacks - Translations - Homebrew

View topic - Static build enforced in code

Reply to topic
Author Message
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 14690
  • Location: London
Reply with quote
Static build enforced in code
Post Posted: Fri Mar 18, 2016 7:12 am
I've been struggling with compiling in VC 2015, for various masochistic reasons. A major issue with it is that it refuses to link multiple CRTs together (whereas earlier versions would link and then die horribly at runtime with heap corruption).

Which brings me to my point. I was getting these errors whenever I tried to compile as anything other than with a static CRT. It turns out that Meka is doing this:

//-----------------------------------------------------------------------------
// STL
//-----------------------------------------------------------------------------

#define _HAS_EXCEPTIONS 0
#define _STATIC_CPPLIB
#define _DISABLE_DEPRECATE_STATIC_CPPLIB
#include <vector>
#include <map>
#include <algorithm>

Is there a strong reason for this?
  View user's profile Send private message Visit poster's website
  • Site Admin
  • Joined: 08 Jul 2001
  • Posts: 8644
  • Location: Paris, France
Reply with quote
Post Posted: Fri Mar 18, 2016 5:26 pm
Building static is just generally better but that define may or not still apply with modern libs. I suppose I could try VS2015. Surprised the project settings aren't imported.
  View user's profile Send private message Visit poster's website
  • Site Admin
  • Joined: 19 Oct 1999
  • Posts: 14690
  • Location: London
Reply with quote
Post Posted: Fri Mar 18, 2016 6:32 pm
I think they were, but I broke it somewhere along the way while trying to figure out some other linker CRT errors. I seem to have found an alternative approach (rely on official NuGet packages, use no local libs) that is compiling, but failing at runtime...
  View user's profile Send private message Visit poster's website
Reply to topic



Back to the top of this page

Back to SMS Power!