From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8900b5c4ed2da116,start X-Google-Attributes: gid103376,public From: schroeer@amst.co.at (Dr. Joachim Schroeer) Subject: Simulink S-Functions in Ada95 Date: 1998/04/29 Message-ID: <6i7ela$89j$1@news.Austria.EU.net>#1/1 X-Deja-AN: 348753987 Followup-To: comp.lang.ada Organization: AMST-Systemtechnik Reply-To: schroeer@amst.co.at Newsgroups: comp.lang.ada Date: 1998-04-29T00:00:00+00:00 List-Id: Has anybody ever tried to develop so-called S-functions for the modelling and simulation tool Simulink (part of Matlab) from Mathworks Inc. in Ada? I've tried it in a number of ways, but failed. I use ObjectAda 7.1.1. As I have no binding to simulink.h (and do not intend to write one), I do not use the OA capability to produce a dll directly from Ada. Instead I use the given MEX-file compiling a small C-file were the exported (with convention => C) Ada subprograms are declared as extern. All used Ada .obj-files are included in .lib-files which are passed to the MEX-command. The MEX produces a dll as long as no extern Ada procedures are called, but if one is called no dll is generated by MEX. MEX uses the Watcom C-compiler. Is it not compatible to .obj-files, .lib-files created by OA? Any hints would be appreciated. J. Schroeer Dr. Joachim Schroeer AMST-Systemtechnik GmbH A-5282 Ranshofen, Austria Tel.: (++)43 7722 85232 30 Fax.: (++)43 7722 85232 99 E-Mail: schroeer@amst.co.at