[Tuxpaint-devel] SDL_Pango header problem
An award-winning drawing program for children of all ages
Brought to you by:
wkendrick
|
From: Bill K. <nb...@so...> - 2007-07-12 19:29:36
|
Hi there! Thanks for SDL_Pango. I'm beginning to update my project "Tux Paint" to use it in favor of SDL_ttf. Unfortunately, I get linking errors when I #include "SDL_Pango.h" in multiple files. (I do so in both 'tuxpaint.c' and 'fonts.c', a C file full of helper routines.) obj/fonts.o:(.rodata+0x0): multiple definition of `_MATRIX_WHITE_BACK' obj/tuxpaint.o:(.rodata+0x0): first defined here obj/fonts.o:(.data+0x0): multiple definition of `MATRIX_WHITE_BACK' obj/tuxpaint.o:(.data+0x0): first defined here obj/fonts.o:(.rodata+0x10): multiple definition of `_MATRIX_BLACK_BACK' obj/tuxpaint.o:(.rodata+0x10): first defined here obj/fonts.o:(.data+0x4): multiple definition of `MATRIX_BLACK_BACK' obj/tuxpaint.o:(.data+0x4): first defined here ...etc. By simply removing the various color matrices in the header, I was able to get things to link. I think you could do either this, or declare them all as 'static'. Thanks in advance, -- -bill! bi...@ne... http://www.newbreedsoftware.com/ |