Re: Linking errors



On Tue, 2006-04-25 at 17:26 +0100, Alex Buell wrote:
> On Tue, 25 Apr 2006 09:45:33 +0100 Alex Buell
> <alex buell munted org uk> waved a wand and this message magically
> appeared:
> 
> > I'm getting the following:
> > 
> > g++ -g -O3 -Wall `pkg-config --cflags gtkmm-2.4` -c sudoku.cpp
> > g++ -g -O3 `pkg-config --libs gtkmm-2.4` -o sudoku sudoku.o  
> > sudoku.o: In function `Sudoku::on_menu_help_about()':
> > /home/alex/src/c++/sudoku/sudoku.cpp:228: undefined reference to
> > `gtkmm_major_version' /home/alex/src/c++/sudoku/sudoku.cpp:228:
> > undefined reference to `gtkmm_micro_version' /home/alex/src/c+
> > +/sudoku/sudoku.cpp:228: undefined reference to `gtkmm_minor_version'
> > 
> > Symbols such as glib_* and gtk_* links perfectly fine. Is there
> > something I'm missing? 
> 
> I solved it - needed to use GTKMM_* (in capital letters). Why do the
> headers not reflect this? gtk/glib doesn't do this.

Please be more specific. I'm not sure what you mean.

-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com




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