pea
developer
Hi all,
I have a problem including external c arrays in my apps. I convert images to arrays, and include them to my list of objects in the makefile and code like so:
The only problem is that only the FIRST included file ever works! It doesn't matter which I use, only the first works.
If I add both arrays to the same c file, it still doesn't work.
If I include the second array (gpdmouse) straight in the code and only have the first as an extern variable, it works ok.
Any ideas?
I have a problem including external c arrays in my apps. I convert images to arrays, and include them to my list of objects in the makefile and code like so:
Code:
MAKEFILE:
OBJS = gpdesktop.o gpd.o gpd_graphics.o gpd_windows.o gpd_fonts.o memcpy.o images/gpdlogo.o images/gpdmouse.o
CODE:
void gpd_init( tGPD_sys *gpd_system ){
extern unsigned char gpdlogo[];
extern unsigned char gpdmouse[];
The only problem is that only the FIRST included file ever works! It doesn't matter which I use, only the first works.
If I add both arrays to the same c file, it still doesn't work.
If I include the second array (gpdmouse) straight in the code and only have the first as an extern variable, it works ok.
Any ideas?