Re: [gtkmm] Link error



Kevin Blah <masterofgoon yahoo com> writes:

> For some reason i am getting the following error:
>
> /tmp/cc7BpFlS.o(.text+0x3f): In function `main':
> /home/kevin/Projects/PortageUI/src/portageui.cc:12:
> undefined reference to
> `MainWindow::MainWindow[in-charge]()'
> /tmp/cc7BpFlS.o(.text+0x5b):/home/kevin/Projects/PortageUI/src/portageui.cc:15:
> undefined reference to `MainWindow::~MainWindow
> [in-charge]()'
> /tmp/cc7BpFlS.o(.text+0x82):/home/kevin/Projects/PortageUI/src/portageui.cc:15:
> undefined reference to `MainWindow::~MainWindow
> [in-charge]()'
> collect2: ld returned 1 exit status
>
> the constructor and destroctor are both defined and
> implemented.

Hm, but the linker is telling you that it can't find them. Are you
sure you are linking them with the code for the main function
properly?

If you are using Automake, one possibility is that you have forgotten
to add the .cpp (or .cc or whatever) file for the main window class to
the _SOURCES list.

-- 
Ole Laursen
http://www.cs.auc.dk/~olau/



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