Re: Linking errors



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.

-- 
http://www.munted.org.uk

Take a nap, it saves lives.



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