I’m getting lots of this while trying to link PokittoSim on a Mac:
Undefined symbols for architecture x86_64:
"Pokitto::lcdRectangle(short, short, short, short, unsigned short)", referenced from:
Pokitto::Display::directRectangle(short, short, short, short, unsigned short) in PokittoDisplay.o
ld: symbol(s) not found for architecture x86_64
I’ve tried changing between stdlibc and libc, but no go.
Also, SDL2 test programs can be compiled and linked separately so I know the SDL2 I’ve built is OK
Console applications compile and link from inside CB without issues
I know enough to have suspicions that either some libs are not built for the right version or something, but perhaps someone has already tried this (compiling PokittoSim on a Mac) ?
Since the complaint is about a .o file this is most likely a link-level error.
If the root issues are related to SDL2 it’s probably an incorrect static lib or a missing static lib.
I’m assuming SDL2 being changed to the mac version is the only change you’ve made and all the Pokitto Sim code is the same?