jeanluct / braidlab

Matlab package for analyzing data using braids
GNU General Public License v3.0
23 stars 9 forks source link

loopsigma_helper without GMP still tries to compile functions with mpz_class #131

Closed mbudisic closed 8 years ago

mbudisic commented 8 years ago

I'm struggling to compile braidlab after update to XCode 7. I have to go away from the computer right now, so I am just leaving this as a placeholder - something to get back to eventually.

When running export BRAIDLAB_USE_GMP=0; make I get

cd +braidlab/@braid/private; make MEX=mex MEXSUFFIX=mexmaci64 MEXFLAGS="-largeArrayDims -O" CXX="c++" CC="cc" CFLAGS="-O -DMATLAB_MEX_FILE -fPIC" CXXFLAGS="-O -DMATLAB_MEX_FILE -fPIC -std=c++0x" GMP_LD="" all
mex -largeArrayDims -O CFLAGS="-O -DMATLAB_MEX_FILE -fPIC" CXXFLAGS="-O -DMATLAB_MEX_FILE -fPIC -std=c++0x" loopsigma_helper.cpp
Building with 'Xcode Clang++'.
/Users/marko/Work/MatlabToolbox/braidlab/+braidlab/@braid/private/loopsigma_helper.cpp:51:53: error: unknown type name 'mpz_class'
void convertCellLoopToGMP( const mxArray* cellLoop, mpz_class * loopIn);
                                                    ^
/Users/marko/Work/MatlabToolbox/braidlab/+braidlab/@braid/private/loopsigma_helper.cpp:52:28: error: unknown type name 'mpz_class'
void convertGMPToCellLoop( mpz_class * loopOut, mxArray* cellLoop );
                           ^
/Users/marko/Work/MatlabToolbox/braidlab/+braidlab/@braid/private/loopsigma_helper.cpp:132:28: error: unknown type name 'mpz_class'
void convertGMPToCellLoop( mpz_class * loopOut, mxArray* cellLoop ) {
                           ^
/Users/marko/Work/MatlabToolbox/braidlab/+braidlab/@braid/private/loopsigma_helper.cpp:153:53: error: unknown type name 'mpz_class'
void convertCellLoopToGMP( const mxArray* cellLoop, mpz_class * loopIn) {
                                                    ^
/Users/marko/Work/MatlabToolbox/braidlab/+braidlab/@braid/private/loopsigma_helper.cpp:169:9: error: use of undeclared identifier 'mpz_class'
        mpz_class(mxArrayToString(mxGetCell(cellLoop,idx)));
        ^
5 errors generated.

make[1]: *** [loopsigma_helper.mexmaci64] Error 255
make: *** [all] Error 2