[ndnSIM] Compilation failure by define an instance of "simpleDeviceEnergyModel"

MOHAMED HAIL mohammad2001m at yahoo.com
Tue Nov 25 10:12:23 PST 2014


Hi,
I am trying to compile the ndnSIM after define an Instance of one class from the energy model offered in ns3.
To clear it, e.g. If I define an instance of "SimpleDeviceEnergyModel" anywhere in ndnSIM, see following code!
//----------------------------------------------------------
#include "ns3/simple-device-energy-model.h"Class AnyClassInNdnSIM
{    public:
        Ptr<SimpleDeviceEnergyModel> sdem;};//----------------------------------------------------------

I am getting the following message:

./libns3-dev-ndnSIM-debug.so: undefined reference to `ns3::SimpleDeviceEnergyModel::SimpleDeviceEnergyModel()'
./libns3-dev-ndnSIM-debug.so: undefined reference to `ns3::SimpleDeviceEnergyModel::GetTypeId()'
collect2: ld returned 1 exit statusWaf: Leaving directory `/home/alhail/workspace/ndnSIM/ns-3/build'
Build failed...........

Could you give any advise to solve this problem?
RegardsMohamed

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20141125/46eb9823/attachment.html>


More information about the ndnSIM mailing list