MATLAB Answers

Ayse Nur

Matlab R2011b mex file compilation error “Unrecognized switch: -argcheck”

Asked by Ayse Nur
on 12 Jan 2013
This question is closed and may reopen in the future if edited.

When i try to compile mex files at matlab r2011b it gives an error as below. How can i fix it?

my system: core i7 - 64bit win7

 You can change your home, image, and results directories if you want ; see startup/definePaths
 Error: compilation of \cimgnbmap_lower.cpp failed :     Usage:
        MEX [option1 ... optionN] sourcefile1 [... sourcefileN]
            [objectfile1 ... objectfileN] [libraryfile1 ... libraryfileN]
 Use the -help option for more information, or consult the MATLAB API Guide.
 C:\PROGRA~1\MATLAB\R2011B\BIN\MEX.PL: Error: Unrecognized switch: -argcheck.
 ....... (same error for other 11 files)
 There were 0 files compiled
 Error: There were 12 erroneous files during compilation
 ans = 
 1x12 struct array with fields:

  1 Comment

Which compiler did you choose when you used

mex -setup


No products are associated with this question.

0 Answers

Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!