Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
Operating system(s):
Libraries used:
#------------------------------------------------- |
////////////////////////////////////////////////////////////////////// |
Due to new version architecture, replace the following line:
consoleInitDefault((u16*)SCREEN_BASE_BLOCK_SUB(31), (u16*)CHAR_BASE_BLOCK_SUB(0), 16); |
Replace it with this line:
consoleInit(0,1, BgType_Text4bpp, BgSize_T_256x256, 0, 6, false, true); |
Now an undefined reference to 'consoleInit' link error occurs.
Searching all Libnds files, no function called 'consoleInitDefault' could be found. In '/opt/devkitpro/libnds-1.4.7/include/nds/arm9/console.h' the function called 'consoleInit' was found. Replacing 'consoleInitDefault' by 'consoleInit' resulted in the followinng error:
error: cannot convert 'u16*' to 'PrintConsole*' for argument '1' to 'PrintConsole* consoleInit(PrintConsole*, int, BgType, BgSize, int, int, bool, bool)' |
So, after checking for consoleInit's function declaration, I see that I have to pass NULL as a first argument for a default consoleInit:
consoleInit(0,(u16*)SCREEN_BASE_BLOCK_SUB(31), (u16*)CHAR_BASE_BLOCK_SUB(0), 16); |
Still no good, so search the web for an example use:
consoleInit(0,1, BgType_Text4bpp, BgSize_T_256x256, 0, 6, false, true); |
Fixed, although now an undefined reference to 'consoleInit' link error occurs.
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.