hi,
i just tried to compile the spritetest program from the new una-i library. i set up the paths in the existing makefile, but i can't be compiled:
D:\gp32dev\projects\SpriteTest>make
arm-elf-gcc -Id:/gp32dev/gp32_MrMirko/gp32_SDK/lib.src/include -Id:/gp32dev/gp32
_MrMirko/MicroLib -O2 -s -w -mtune=arm9tdmi -c -o sprites/garfield.o sprites/g
arfield.c
arm-elf-gcc -Id:/gp32dev/gp32_MrMirko/gp32_SDK/lib.src/include -Id:/gp32dev/gp32
_MrMirko/MicroLib -O2 -s -w -mtune=arm9tdmi -c -o sprites/odie.o sprites/odie.
c
arm-elf-gcc -Id:/gp32dev/gp32_MrMirko/gp32_SDK/lib.src/include -Id:/gp32dev/gp32
_MrMirko/MicroLib -O2 -s -w -mtune=arm9tdmi -c -o sprites/test.o sprites/test.
c
arm-elf-c++ -Id:/gp32dev/gp32_MrMirko/gp32_SDK/lib.src/include -Id:/gp32dev/gp32
_MrMirko/MicroLib -O2 -s -w -mtune=arm9tdmi -c -o cpp.o cpp.cpp
arm-elf-gcc -Id:/gp32dev/gp32_MrMirko/gp32_SDK/lib.src/include -Id:/gp32dev/gp32
_MrMirko/MicroLib -O2 -s -w -mtune=arm9tdmi -c -o main.o main.c
arm-elf-c++ -Id:/gp32dev/gp32_MrMirko/gp32_SDK/lib.src/include -Id:/gp32dev/gp32
_MrMirko/MicroLib -O2 -s -w -mtune=arm9tdmi -c -o sprite.o sprite.cpp
sprite.cpp: In function `void swap_screen()':
sprite.cpp:22: error: invalid conversion from `u32' to `void*'
sprite.cpp:22: error: initializing argument 1 of `void gp_setFramebuffer(void*
, int)'
sprite.cpp: In function `int cpp_main()':
sprite.cpp:43: error: invalid conversion from `u32' to `void*'
sprite.cpp:43: error: initializing argument 1 of `short int gp_initFramebuffer
(void*, u16, u16)'
make: *** [sprite.o] Error 1
does anyone have the same prob? is it an error in the spritetest.cpp?
i just tried to compile the spritetest program from the new una-i library. i set up the paths in the existing makefile, but i can't be compiled:
D:\gp32dev\projects\SpriteTest>make
arm-elf-gcc -Id:/gp32dev/gp32_MrMirko/gp32_SDK/lib.src/include -Id:/gp32dev/gp32
_MrMirko/MicroLib -O2 -s -w -mtune=arm9tdmi -c -o sprites/garfield.o sprites/g
arfield.c
arm-elf-gcc -Id:/gp32dev/gp32_MrMirko/gp32_SDK/lib.src/include -Id:/gp32dev/gp32
_MrMirko/MicroLib -O2 -s -w -mtune=arm9tdmi -c -o sprites/odie.o sprites/odie.
c
arm-elf-gcc -Id:/gp32dev/gp32_MrMirko/gp32_SDK/lib.src/include -Id:/gp32dev/gp32
_MrMirko/MicroLib -O2 -s -w -mtune=arm9tdmi -c -o sprites/test.o sprites/test.
c
arm-elf-c++ -Id:/gp32dev/gp32_MrMirko/gp32_SDK/lib.src/include -Id:/gp32dev/gp32
_MrMirko/MicroLib -O2 -s -w -mtune=arm9tdmi -c -o cpp.o cpp.cpp
arm-elf-gcc -Id:/gp32dev/gp32_MrMirko/gp32_SDK/lib.src/include -Id:/gp32dev/gp32
_MrMirko/MicroLib -O2 -s -w -mtune=arm9tdmi -c -o main.o main.c
arm-elf-c++ -Id:/gp32dev/gp32_MrMirko/gp32_SDK/lib.src/include -Id:/gp32dev/gp32
_MrMirko/MicroLib -O2 -s -w -mtune=arm9tdmi -c -o sprite.o sprite.cpp
sprite.cpp: In function `void swap_screen()':
sprite.cpp:22: error: invalid conversion from `u32' to `void*'
sprite.cpp:22: error: initializing argument 1 of `void gp_setFramebuffer(void*
, int)'
sprite.cpp: In function `int cpp_main()':
sprite.cpp:43: error: invalid conversion from `u32' to `void*'
sprite.cpp:43: error: initializing argument 1 of `short int gp_initFramebuffer
(void*, u16, u16)'
make: *** [sprite.o] Error 1
does anyone have the same prob? is it an error in the spritetest.cpp?