Article View: comp.soft-sys.matlab
Article #199Re: dynamic_cast in C++ Mex files
From: Cheryl Jones
Date: Thu, 16 May 2002 15:38
Date: Thu, 16 May 2002 15:38
19 lines
1603 bytes
1603 bytes
Make sure that you use g++ to compile and link your MEX-file. Output from mex -v might help as would a stack trace from the debugger when you seg fault. A snippet of code would also help. Dirk Walther wrote: > Hello everyone > > I would like to use dynamic_cast in C++ Matlab-Mex files. This seems > to be okay if I use g++ 2.96 but crashes with a segmentation fault > when I use g++ 3.02. > > I will have to use g++ 3.02 because of new features in the standard > library. > > Does anyone have similar experiences or know any advice what to do? > > Cheers > Dirk
Technical Details
Message-ID:
<3CE3D261.D50753ED@mathworks.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.mathworks.com!news.mathworks.com!not-for-mailReferences:
<bc93e46f.0205151237.4aacf7c8@posting.google.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 106e3f,9d02759e57900f79 X-Google-Attributes: gid106e3f,public X-Google-Thread: 10ba33,9d02759e57900f79 X-Google-Attributes: gid10ba33,public X-Google-ArrivalTime: 2002-05-16 08:38:10 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.mathworks.com!news.mathworks.com!not-for-mail From: Cheryl Jones <cjones@mathworks.com> Newsgroups: comp.soft-sys.matlab,gnu.g++.help Subject: Re: dynamic_cast in C++ Mex files Date: Thu, 16 May 2002 11:38:09 -0400 Organization: The MathWorks, Inc., Natick, MA 01760 Lines: 20 Message-ID: <3CE3D261.D50753ED@mathworks.com> References: <bc93e46f.0205151237.4aacf7c8@posting.google.com> NNTP-Posting-Host: jonesc.dhcp.mathworks.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en To: Dirk Walther <aznagar@web.de>