Change this
int main(int argc, char **argv)
break
To this
int main(int argc, char **argv) {
gfxInitDefault(); //initalize 3ds graphics
consoleInit(GFX_TOP, &topScreen);
while(aptMainLoop()) {
gfxSwapBuffers();
gfxFlushBuffers();
gspWaitForVBlank();
hidScanInput();
u32 kDown = hidKeysDown(); //define kDown so we don't have to type hidKeysDown() every time
if (kDown & KEY_START)
break; // break in order to return to hbmenu
}
gfxExit();
return 0;
}
It isn't going to compile if you don't have code that works