#35656 - KonVex - Wed Feb 09, 2005 2:00 am
I wanted to use the mbv2lib for debugging purposes, but if I try to compile a small c++ test program, g++ will abort with a list of errors. What confuses me is that the same program works if treated as c code!
(btw I use devkitARM R8)
The errors:
arm-elf-g++ -c -o output\system_debug.o System_Debug.cpp
System_Debug.cpp: In function `void GBA_Print()':
System_Debug.cpp(9): error: invalid conversion from `unsigned char*' to `char*'
System_Debug.cpp(9): error: initializing argument 1 of `int dsprintf(char*, const char*, ...)'
System_Debug.cpp(9): error: invalid conversion from `unsigned char*' to `char*'
System_Debug.cpp(9): error: initializing argument 1 of `void __PrintStr(char*)'
(btw I use devkitARM R8)
The errors:
arm-elf-g++ -c -o output\system_debug.o System_Debug.cpp
System_Debug.cpp: In function `void GBA_Print()':
System_Debug.cpp(9): error: invalid conversion from `unsigned char*' to `char*'
System_Debug.cpp(9): error: initializing argument 1 of `int dsprintf(char*, const char*, ...)'
System_Debug.cpp(9): error: invalid conversion from `unsigned char*' to `char*'
System_Debug.cpp(9): error: initializing argument 1 of `void __PrintStr(char*)'