0

I am new to Omnet++ and C++ programming and trying to resolve following error. Please forgive any glaringly obvious points and find below the error output:

Creating executable: out/clang-debug//my_project_dbg.exe
lld-link: error: duplicate symbol: FindModule<Veins::TraCIScenarioManager*>::findSubModule(omnetpp::cModule const*)
>>> defined at C:/veins-4.7.1/veins-veins-4.7.1/src/veins/base/utils/FindModule.h:23
>>>            out/clang-debug//my_project.o
>>> defined at libveins_dbg.dll

lld-link: error: duplicate symbol: FindModule<Veins::TraCIScenarioManager*>::findGlobalModule()
>>> defined at C:/veins-4.7.1/veins-veins-4.7.1/src/veins/base/utils/FindModule.h:44
>>>            out/clang-debug//my_project.o
>>> defined at libveins_dbg.dll

lld-link: error: duplicate symbol: BaseApplLayer::handleSelfMsg(omnetpp::cMessage*)
>>> defined at C:/veins-4.7.1/veins-veins-4.7.1/src/veins/base/modules/BaseApplLayer.h:93
>>>            out/clang-debug//my_project.o
>>> defined at libveins_dbg.dll

lld-link: error: duplicate symbol: BaseApplLayer::BaseApplLayer()
>>> defined at C:/veins-4.7.1/veins-veins-4.7.1/src/veins/base/modules/BaseApplLayer.h:68
>>>            out/clang-debug//my_project.o
>>> defined at libveins_dbg.dll

lld-link: error: duplicate symbol: BaseApplLayer::~BaseApplLayer()
>>> defined at C:/veins-4.7.1/veins-veins-4.7.1/src/veins/base/modules/BaseApplLayer.h:44
>>>            out/clang-debug//my_project.o
>>> defined at libveins_dbg.dll

I am using Omnet++ 5.7 and have tested my simulation both with veins4.7.1. I tried with veins 5.2 as well and got similar errors. Could anyone please guide (or any kind of ideas and suggestions are much welcomed.)

0 Answers0