From: bibi AT online DOT de (Bernd Blessmann) Subject: simulink and struct alignment under win95 31 Jul 1998 15:33:57 -0700 Message-ID: <35C0679C.96D7561E.cygnus.gnu-win32@online.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit To: gnu-win32 AT cygnus DOT com 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 AT online DOT de ) - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".