The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: C++ and Simulink S-Function
Replies: 2   Last Post: Apr 16, 1997 1:39 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Marc Ullman

Posts: 11
Registered: 12/7/04
Re: C++ and Simulink S-Function
Posted: Apr 15, 1997 10:51 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi Suresh,

This error probably has nothing to do with Simulink. I suspect that
you used gcc to build your MEX-file as __builtin_vec_delete is a
function that is provided in libgcc.a. Perhpas your MEX-file was not
linked against libgcc.a. This should happen automatically when using
GCC as your compiler, but in case it's not, you can try specifying
it explicitly with your MEX command using -lgcc.

Hope this helps,


Suresh Kannan wrote:
> Hi,
> We have developed a C++ based helicopter simulation and basically need
> to plug into matlab to integrate and visualize the plots. The problem
> is that it is in C++. Is it possible to link it ? to make a
> helisim.mexsol file.
> here is the error i come across when I try to load it up in simulink
> Unable to load mex file:
> /usr/local/matlab5/bin/sol2/matlab: fatal: relocation error:
> symbol not found: __builtin_vec_delete: referenced in
> /home/gypsy1/gt1111b/gtar/model/matsim/helisim.mexsol
> ??? Invalid MEX-file
> anybody linked up C++ code to simulink ? pls. help
> regards,
> suresh
> --
> Suresh Kannan
> MS Aero, Georgia Tech
> Never wrestle a pig, you only get dirty and it only irritates the pig
> - Leon the pig farmer

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.