问题
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
回答1:
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
来源:https://stackoverflow.com/questions/43424829/how-to-use-lpsolve-in-omnet-simple-modules