如何在 omnet++ 简单模块中使用 lpsolve

How to use lpsolve in omnet++ simple modules

可以从带有 main() 的 C++ 程序调用 lpsolve,但我无法在 handlemesage() 或 omnet++ 模拟中的任何其他用户定义方法中使用它。

感谢您在这方面的任何帮助。

谢谢

转到项目属性 --> omnet++ --> select SRC --> 选项 --> link --> link 的附加库:( -l选项)并插入 lpsolve55 和 ok

Screenshot of the step1

Screenshot of the step2