[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: make nam



> When I compiled "nam", I met the following error, can anyone help me out?
> (I did not use tcl/tk8.0.4, I used tcl/tk8.0, I do not know if this
> matters?)
> 
> Thanks.
> --------------------------
> view.o: In function `View::load_fonts(void)':
> view.o(.text+0x12e0): undefined reference to `Tk_GetFontStruct'
> view.o: In function `View::free_fonts(void)':
> view.o(.text+0x1378): undefined reference to `Tk_FreeFontStruct'

Please check your makefile and be sure that the tk headers and lib are
indeed from the same distribution. Looks like that your headers is tk8.0
but your libraries are tk7.x, because Tk_FreeFont() etc is only for 8.0
and in tkcompat.h it's #define-d to Tk_FreeFontStruct for 7.x. (BTW, this
usually happens when your -L paths have sth like -L/usr/lib -L<your tk8.0
path>). 

- Haobo