How to link during Matlab's MEX compilation

后端 未结 3 1962
春和景丽
春和景丽 2020-12-10 16:44

I\'ve written a program of the following form:

#include \"stuff_I_need.h\"

int main(){

construct_array(); // uses OpenMP pragma\'s
print_array();

return(0         


        
3条回答
  •  旧巷少年郎
    2020-12-10 17:43

    Matlab uses its own libstdc and libstdc++.

    The shortcut would be to do a symbolink to those libraries to the gcc44 libraries that you want to use.

    But this may not be the desired way to go. You could try compiling outside matlab prompt and see if it still fails compilation first.

提交回复
热议问题