gerald-lindsly/mongo-matlab-driver — Issue #2: pre-processor definitions are not processed properly
Author: extrakteon
Created: 2012-02-14 20:30:15+00:00
State: open

I get the following problem when trying to load the library in Linux (MATLAB 2010b 32- and 64-bit).

The library compiles just fine (then the pre-processor stuff works) but MATLAB doesn't like it.

[notfound, warnings] = loadlibrary('MongoMatlabDriver.so', 'MongoMatlabDriver.h');
??? Error using ==> loadlibrary at 365
Failed to preprocess the input file.
Output from preprocessor is:In file included from
/home/e7koffe/git/mongo-matlab-driver/MongoMatlabDriver.h:38:0:
/home/e7koffe/git/mongo-matlab-driver/platform.h:50:2: error: #error must have a 64bit int type

I could try to merge platform.h into the MongoMatlabDriver.h and set all the options manually.