🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.soft-sys.matlab
3 messages
3 total messages Started by Dirk Walther Wed, 15 May 2002 20:37
dynamic_cast in C++ Mex files
#197
Author: Dirk Walther
Date: Wed, 15 May 2002 20:37
13 lines
1227 bytes
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
Re: dynamic_cast in C++ Mex files
#198
Author: André Pönitz
Date: Thu, 16 May 2002 08:01
15 lines
1484 bytes
In gnu.g++.help Dirk Walther <aznagar@web.de> wrote:
> [...] know any advice what to do?

Think hard about the following question:

"Have I done anything to provide potential helpers with all necessary
information?"

Things like source code usually help ;-)

Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)
Re: dynamic_cast in C++ Mex files
#199
Author: Cheryl Jones
Date: Thu, 16 May 2002 15:38
19 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads