Solution by chappjc (<http://stackoverflow.com/users/2778484/chappjc>) from Stack Overflow Forum
"The library (.lib) you are trying to link to seems to be a C++ library, although these functions have C entry points (check with Dependency Walker). I got it to compile by renaming your mexFunction source from .c to .cpp, putting the header and source in the same folder, and compiling like:
mex -v -L. -lNPTrackingToolsx64 test_C_compile_with_include_trackingtools.cpp
although you can simply list object files on the command line like this:
mex -v test_C_compile_with_include_trackingtools.cpp NPTrackingToolsx64.lib
Just list the source file first or the output .mexw64 file will have the name of the library!"
All i needed is rename it .CPP so it compiled in C++. I didn't do anything extra to link it to Intel's OpenMP runtime library, I guess Matlab already link it by defualt.