Can't find main
17:19 12 Jul 2026

i'm having trouble compiling a sokol_app on osx. regardless of what i do - i can't seem to get it to find `main()`

i've attached my main.mm

#if defined(__APPLE__)

#define SOKOL_IMPL

#define SOKOL_GL_IMPL

#define SOKOL_GLCORE

#endif

#include "../inc/sd_main.hpp"

sapp_desc sokol_main(int argc, char *argv[]) {

  return sd_main::entry(argc, argv);

}

fips osx-make-debug just tells me `_main` was not found

i don't think that this is a sokol issue as much as a me being dumb issue. When I add a "main()" I get the usual "you have two main functions" message

something about enabling "pedantic" and c++17?

c++ objective-c macos