[gtkmm] Link error



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.

all the code compiles fine except for the main
function which consists of the following:

int main(int argc, char **argv)
{
    /* Let GTK strip any args it needs */
    Gtk::Main kit(&argc, &argv);

    /* run run run */
    MainWindow mainwindow;
    Gtk::Main::run(mainwindow);

    return 0;
}

help appreciated,
kevin

__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus



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