MEX, gcc, segmentation violation

2 views (last 30 days)
Stefano Cauzzi
Stefano Cauzzi on 27 Nov 2014
Commented: Geoff Hayes on 28 Nov 2014
Hi,
I'm currently using a mex function which crashes at a certain point (Segmentation Violation).
how can I debug it? (I'm using Linux Mint)
moreover, when I try to compile the mex fuction, I get the following warning:
Warning: You are using gcc version '4.8.2'. The version of gcc is not supported. The version currently supported with MEX is '4.7.x'.
Might this be the cause? Should I revert back to g++ 4.7.x? How? Won't an older compiler affect the stability of my OS?
  1 Comment
Geoff Hayes
Geoff Hayes on 28 Nov 2014
Stefano - can you post the code that is causing the crash, or at least the portion of it that is generating the segmentation violation? The message that you are seeing is "just" a warning so may not have anything to do with the problem you are experiencing.

Sign in to comment.

Answers (0)

Categories

Find more on MATLAB Compiler 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!