Qt - снапшот недельной давности, собирал с конфигом:
./configure -prefix /usr/trolltech/QtEmbedded-4.5.0s-x86 -qvfb -no-largefile -no-qt3support -little-endian -depths 8,16
g++ --version
g++ (Debian 4.3.3-3) 4.3.3
basicwidget.h:
#ifndef BASICWDG_H
#define BASICWDG_H
#include <QWidget>
class BasicWdg : public QWidget
{
Q_OBJECT
private:
protected:
virtual void MatchButtons(void)=0;
public:
BasicWdg(QWidget *parent = 0, Qt::WindowFlags f = 0);
};
#endif // BASICWDG_H
basicwidget.cpp:
#include "misc.h"
#include "basicwidget.h"
#include "fmain.h"
BasicWdg::BasicWdg(QWidget *parent, Qt::WindowFlags f) : QWidget(parent, f)
{
setGeometry(CENTRAL_WIDGET_LEFT, CENTRAL_WIDGET_TOP, CENTRAL_WIDGET_WIDTH, CENTRAL_WIDGET_HEIGHT);
setAutoFillBackground(true);
mainWnd->DisconnectAllSignals();
MatchButtons();
}
Компилятор пишет:
src/basicwidget.cpp|11|undefined reference to `BasicWdg::MatchButtons()'