florasim / flora

This is a set of modules to simulate LoRa networks
Other
52 stars 36 forks source link

Linking Issue Win11 #65

Open TimonPetermann opened 1 year ago

TimonPetermann commented 1 year ago

Hi, during linking, I get some weird errors:

[...] multiple definition of virtual thunk to inet::physicallayer::Radio::getReceiver() const; ../out/gcc-debug/src/LoRa/LoRaGWRadio.o: [...] inet/src/inet/physicallayer/wireless/common/radio/packetlevel/Radio.h:215: first defined here

Same error repeats for several other funktions. Mainly this concerns functions, that are defined in inet header files.

I am on Windows 11, using omnet++ 6.0 and inet4.4.1.

Has someone experienced similar issues?

Cheers, Timon

TimonPetermann commented 1 year ago

I found some workaround: Performing the same linking operation in the omnet++ environment terminal and this seem to work.

I assume, that somehow, the link command in the omnet ide is not executed in the same environment. Does somebody know what could cause this behavior?

So this workaround is not really a nice one. Especially, as with the workaround I still have issues when running simulations. Somehow, omnet cannot find the belonging classes for the implemented modules and complains about a misssing Define_Module() call.