Calling matlab from C++

前端 未结 4 600
北荒
北荒 2020-12-10 07:23

I tried to call matlab from a .cpp file. I used the following command to compile engdemo.cpp which includes \"engine.h\"

g++ engde         


        
4条回答
  •  忘掉有多难
    2020-12-10 07:57

    Following up on what @Kurt S said, you'll need to include libraries. These are common ones you'll need: libeng.lib libmat.lib libmx.lib, but you might need others.

    Thus you want to add the linking options -llibeng -llibmat -llibmx

    But you might need others as well.

提交回复
热议问题