I am trying to setup NETA framework on Omnetpp 4.3 and INET 2.1, I get the an error says:
'NA_UDPBasicBurst::hopCountSignal' redeclared without dllimport attribute: previous dllimport ignored [-
Wattributes]"
even there are no dll import or export in the project
the line that gives the error is in file called NA_UDPBasicBurst.cc
#include "NA_UDPBasicBurst.h"
#include "UDPControlInfo_m.h"
#include "IPvXAddressResolver.h"
using std::cout;
Define_Module(NA_UDPBasicBurst);
simsignal_t NA_UDPBasicBurst::hopCountSignal = SIMSIGNAL_NULL;
and its defined in the .h file like this :
#ifndef NA__INET_UDPBASICBURST_H
#define NA__INET_UDPBASICBURST_H
#include <UDPBasicBurst.h>
#include <omnetpp.h>
#include "common/log/NA_NesgLog.h"
class INET_API NA_UDPBasicBurst : public UDPBasicBurst {
protected:
int numHopsTotal;
double avHopCount;
static simsignal_t hopCountSignal;
can anyone help me with that please.
I am trying to setup NETA framework on Omnetpp 4.3 and INET 2.1
I have solved it by adding __declspec(dllexport) like this :
simsignal_t __declspec(dllexport) NA_UDPBasicBurst::hopCountSignal = SIMSIGNAL_NULL;