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: > ld.so.1: /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 > http://www.cad.gatech.edu/~gt1111b > Never wrestle a pig, you only get dirty and it only irritates the pig > - Leon the pig farmer