I get this error "lcc preprocessor error: IRLS.c:16 Macro redefinition of NULL" when I try to compile a C code for matlabusage using mex command

1 view (last 30 days)
I get the error "lcc preprocessor error: IRLS.c:16 Macro redefinition of NULL" when i run "mex file.c" in matlab.
The code file.c has the following line "#define NULL 0". Is there a simple way to fix this?
Thanks

Accepted Answer

James Tursa
James Tursa on 28 Sep 2013
Delete that line from your source code.

More Answers (0)

Categories

Find more on Write C Functions Callable from MATLAB (MEX Files) in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!