How to create a .lib file for graph.h graph.cpp and mxflow.cpp files to be used futher for mbuild parameters

7 ビュー (過去 30 日間)
I am using MATLAB 2009a on Windows OS. I require to use maxflow v-3.01's .h and .cpp files as library files to be used for finding the maximum flow in a graph using a maxflow function of cpp. from MATLAB
For mbuild to work, how to first create a .lib for all .cpp and .h files in it.
I will be very thankful if you can help me.
Please suggest if there is any other way out.

回答 (1 件)

Titus Edelhofer
Titus Edelhofer 2012 年 1 月 16 日
Hi,
you can either use mbuild itself for this task (add a .exports file to your list of files to be compiled, see
doc mbuild
or, could be easier: just add all the .cpp files when compiling your mex function.
Titus

カテゴリ

Help Center および File ExchangeMATLAB Compiler SDK についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by