This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

simulink and struct alignment under win95


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
( bibi@online.de )



-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]