GMLC-TDC / helics-ns3

ns-3 module for integrating with a HELICS co-simulation
GNU General Public License v2.0
3 stars 8 forks source link

error: ‘class helics::MessageFederate’ has no member named ‘SendMessage’ #51

Open stevenlebron opened 11 months ago

stevenlebron commented 11 months ago

Hi, everyone. When I try to install helics-ns3 and input the command ./waf configure --with-helics=/usr/local --disable-werror --enable-examples --enable-tests, I encounter errors like ../contrib/helics/examples/fed-filter.cc:61:15: error: ‘class helics::MessageFederate’ has no member named ‘SendMessage’; did you mean ‘getMessage’? | mFed->SendMessage(idsource, name+"/"+dstEndpoint, message.data(), message.size()); | ^~~~~~~~~~~ | getMessage I think that the errors are due to version issues and some function names are changed, but I can't deal with the issue above. The versions of helics and ns-3 in my system are respectively 3.4.0 and 3.35. Can you give me some hints to debug this problems?

Thank you in advance.

nightlark commented 11 months ago

It sounds like you’re using a version of the helics-ns3 binding that is made for HELICS v2.

On Tuesday, September 19, 2023, stevenlebron @.***> wrote:

Hi, everyone. When I try to install helics-ns3 and input the command ./waf configure --with-helics=/usr/local --disable-werror --enable-examples --enable-tests, I encounter errors like ../contrib/helics/examples/fed-filter.cc:61:15: error: ‘class helics::MessageFederate’ has no member named ‘SendMessage’; did you mean ‘getMessage’? | mFed->SendMessage(idsource, name+"/"+dstEndpoint, message.data(), message.size()); | ^~~ | getMessage I think that the errors are due to version issues and some function names are changed, but I can't deal with the issue above. The versions of helics and ns-3 in my system are respectively 3.4.0 and 3.35. Can you give me some hints to debug this problems?

Thank you in advance.

— Reply to this email directly, view it on GitHub https://github.com/GMLC-TDC/helics-ns3/issues/51, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA6JBZZQAZP6OCZZRPDZVDTX3J7PPANCNFSM6AAAAAA47KS77I . You are receiving this because you are subscribed to this thread.Message ID: @.***>

chelsea-sccss commented 11 months ago

I just noticed that the fed-filter version has been updated, thanks.

stevenlebron commented 10 months ago

Hi, nightlark. I want to use NS 3.38 to simulate some 5G behaviors and then interact with Helics. But in Github, the latest version of helics-ns3 is NS 3.35. Can NS 3.38 connect with Helics?

nightlark commented 10 months ago

You can probably use the helics 2 with cmake support branch as an example of how to update the main branch to work with newer versions of ns-3.

Unfortunately I don’t have any projects currently funding my time to work on helics-ns3, and I was told it would be a conflict of interest to work on it in my free time. If someone wants to update the main helics-ns3 branch with cmake support and open a PR, I can merge the PR.