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
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.