Hey guys,
I have no clue why I'm getting this error: Undefined Reference to vtable
Here's my code:
#ifndef JAUS_H
#define JAUS_H
#include <QtNetwork>
struct Jaus_header
{
unsigned short message_properties;
unsigned short command_code;
unsigned short data_control;
unsigned short sequence_num;
};
class Jaus_neighbor
{
Q_OBJECT
public:
void handshake();
void capabilities_discover();
void sys_management();
void close_conn();
private:
Jaus_header head;
unsigned short command;
unsigned short control;
unsigned short seq_num;
private slots:
void read_jheader();
void send_jheader();
void set_data();
void do_command();
void startBroadcasting();
void stopBroadcasting();
void sendDatagram();
//void verifyDatagram();
};
#endif // JAUS_H
#ifndef JAUS_H
#define JAUS_H
#include <QtNetwork>
struct Jaus_header
{
unsigned short message_properties;
unsigned short command_code;
QByteArray dest_id[4];
QByteArray source_id[4];
unsigned short data_control;
unsigned short sequence_num;
};
class Jaus_neighbor
{
Q_OBJECT
public:
void handshake();
void capabilities_discover();
void sys_management();
void close_conn();
private:
Jaus_header head;
unsigned short command;
QByteArray dest[4];
QByteArray source[4];
unsigned short control;
unsigned short seq_num;
QUdpSocket *udpSocket;
private slots:
void read_jheader();
void send_jheader();
void set_data();
void do_command();
void startBroadcasting();
void stopBroadcasting();
void sendDatagram();
//void verifyDatagram();
};
#endif // JAUS_H
To copy to clipboard, switch view to plain text mode
#include "jaus.h"
void Jaus_neighbor::startBroadcasting()
{
}
void Jaus_neighbor::stopBroadcasting()
{
}
void Jaus_neighbor::sendDatagram()
{
//udpSocket->writeDatagram(message, QHostAddress::LocalHost, 9000);
}
void Jaus_neighbor::handshake()
{
Jaus_neighbor::startBroadcasting();
}
#include "jaus.h"
void Jaus_neighbor::startBroadcasting()
{
}
void Jaus_neighbor::stopBroadcasting()
{
}
void Jaus_neighbor::sendDatagram()
{
//udpSocket->writeDatagram(message, QHostAddress::LocalHost, 9000);
}
void Jaus_neighbor::handshake()
{
Jaus_neighbor::startBroadcasting();
}
To copy to clipboard, switch view to plain text mode
#include <QtCore/QCoreApplication>
#include <iostream>
#include "jaus.h"
using namespace std;
int main(int argc, char *argv[])
{
cout << "Initializing Jaus Connections..." << flush;
Jaus_neighbor cop;
return a.exec();
}
#include <QtCore/QCoreApplication>
#include <iostream>
#include "jaus.h"
using namespace std;
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
cout << "Initializing Jaus Connections..." << flush;
Jaus_neighbor cop;
return a.exec();
}
To copy to clipboard, switch view to plain text mode
Please help!
Bookmarks