Hi people,
I am really struggling with this one!
My class and implementation: (it should inherit from MyFramework::
TcpReceiver)
------------------------- >MyConnection.h
#ifndef MYCONNECTION_H_
#define MYCONNECTION_H_
#include "TcpReceiver.h"
class MyConnection : public MyFramework::TcpReceiver {
public:
MyConnection(const std::string &cfg, const std::string &feed_name);
~MyConnection();
};
#endif
--------------------->MyConnection.cpp
#include <iostream>
#include "MyConnection.h"
using namespace std;
using namespace MyNamespace;
using namespace MyFramework;
MyConnection::MyConnection(const std::string &config, const
std::string &connection){
cout<<("Calling constructor")<<endl;
};
MyConnection::~MyConnection(){};
------------------------> In my main, I do this:
MyConnection recv(config, connection);
ERROR: cannot declare variable recv to be of abstract type
MyConnection.
Now this is driving me nuts.HELP!