Search code examples
c++omnet++lpsolve

How to use lpsolve in omnet++ simple modules


lpsolve can be called from a c++ program with main() but I am unable to use it in handlemesage() or any other user-defined method in omnet++ simulation.

Any help in this regard is appreciated.

Thanks


Solution

  • Go to project properties --> omnet++ --> select SRC --> Options --> link --> Additional libraries to link with: ( -l option) and insert lpsolve55 and ok

    Screenshot of the step1

    Screenshot of the step2