karim-emara / PREXT

PREXT is a unified and extensible framework that simulate pseudonym change schemes (i.e., privacy schemes) in VANET.
GNU General Public License v3.0
17 stars 11 forks source link

BaseLayer.h not found #2

Closed sarahalshareeda closed 7 years ago

sarahalshareeda commented 7 years ago

hi karim, I am trying to install prext and when i make veins it says: BaseLayer.h is not found when i gcc prext/base/baseprivlayer.h, could you please help with this?

karim-emara commented 7 years ago

Hi Sarah, please ensure that you have added "/veins/src/veins/modules/Prext/include" to the include paths In the veins configuration, "C/C++ General"->"Paths and Symbols" tab: On the right view, Select "Includes" tab"/"GNU C++". I have added some images of the configuration dialogs to the Readme. They may help.

please let me know if you resolved this issue.

Best, Karim

sarahalshareeda commented 7 years ago

solved Karim, Thanks, I just changed the veins folder name, Now for another problem the CAPS.cc file under Prext/schemes folder. I receive this error: conversion from 'omnetpp::cPar' to 'int64_t' (aka 'long long') is ambiguous. i think it is related with the simtime constructors support in omnetpp version 5, I'm running on windows 7 enterprise, any idea about this? Sarah

karim-emara commented 7 years ago

Great, then I will close the issue. For conversion issue, it seems that implicit casting is not working in windows. You can overcome this by using longValue, doubleValue, or boolValue member functions of cPar. e.g.,

minPsynmLifetime = SimTime(par("minPsynmLifetime").longValue(), SimTimeUnit::SIMTIME_S);

I will try to change all implicit cPar casting to explicit ones and push that to github soon.

Please let me know if you are successful in compiling Prext on windows. You will be the first :)

-- Karim