Le vendredi 20 novembre 2009 à 12:04 +0000, G. Perendia a écrit :
This kind of high-levle conflict is what I was worried about. I will then change #ifdef MATLAB to #ifdef MATLAB to #if defined(MATLAB_MEX_FILE) || defined(OCTAVE_MEX_FILE)
Just to check, does then MATLAB_MEX_FILE and OCTAVE_MEX_FILE then apply to (i.e. is #defined for) all sources when being compiled for Matlab/Octave DLLs (e.g. inc. GeneralMatrix.cpp) or just to the main mexFunction files?
To all sources included in a MEX file.
Best,