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

New to MATLAB?

Thread Subject:
mex & "-undefined suppress"

Subject: mex & "-undefined suppress"

From: Michael

Date: 27 Nov, 2007 05:48:16

Message: 1 of 1

MacOSX 10.4
Matlab 2007a
GCC 4.0.1


I'm building some mex files. The default mex scripts have the option "-
undefined suppress" in the gcc linker flags. The problem is that if you forget to
include a source file, or a symbol is otherwise undefined after linking, you don't
get a warning. If you then run your mex file from Matlab, it simply crashes

So I can remove "-undefined suppress" warning, but then I get a whole pile of
warnings relating to system and/or matlab stuff that don't seem to effect the
running of the mex file. Anyone know if this is normal? Anyone know a way
around this, to get rid of all the ignorable undefined symbol warnings while still
getting warnings relevant to me? It sure would be nice. Thanks.


Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us