Subject: simulink and struct alignment under win95
From: [email-masked] (Bernd Blessmann)

31 Jul 1998 15:33:57 -0700
Message-ID: <[email-masked]>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
To: [email-masked]

Hi,

I am using Cygwin_32 Version 19.1  under Win95 with the egcs-gcc Version

1.0.2 to
build Simulink S-Functions (Matlab Student Edition 5 and Simulink
Student Edition Version 2)
and receive following error message upon "Simulation/Start":
"Error in S-function block ´csf/S-Function´: Unable to execute C MEX
S-Function ´csfunc´.
It appears to have been built with incorrect structure alignment
compiler options. Please verify
that the correct structure alignment options are specified and recompile

the S-function (see the
mex command for details)."

The S-Function is a simulink example (csfunc.c).
All pure Matlab-Mex-Files (examples) work fine with the mexopt-files
found in this mailing-lists.
I have tried to specify the -fpack-struct compiler option, but it didn´t

help.

Has anyone managed to compile and simulate S-Functions with cygnus and
egcs under win95?
Has anyone an idea how to sepcify the right structure alignment options
or evem how to find out
what alignment is used by the matlab/simulink libraries?

  Greetings
     Bernd
( [email-masked] )

-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".