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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ad829d3ec11d6354 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!news.glorb.com!logbridge.uoregon.edu!canoe.uoregon.edu!newsfeed.news.ucla.edu!newsfeed.berkeley.edu!ucberkeley!newsfeed.arcor.de!news.arcor.de!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Problem creating bindings - please help Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <1147934783.645893.274580@u72g2000cwu.googlegroups.com> <1147949508.476468.302020@j73g2000cwa.googlegroups.com> Date: Thu, 18 May 2006 14:32:40 +0200 Message-ID: NNTP-Posting-Date: 18 May 2006 14:32:41 MEST NNTP-Posting-Host: 8160a340.newsread2.arcor-online.net X-Trace: DXC=UMk3ofTcQbEUhhl_USDNiOQ5U85hF6f;DjW\KbG]kaMH[NGU2GAcMGJfn`O1iBMRjNWRXZ37ga[7Jn919Q4_`VjINZZj5LgkU On 18 May 2006 03:51:48 -0700, Gerd wrote: >> BTW, is it a CAN-bus adapter APIs? Which vendor? > > Yes, it is. It's a "PEAK-Service GmbH, Darmstadt" device. I see. > Are there any CAN-bus bindings for Ada available on the net (for any > vendor)? I don't know of any. I should not be that difficult to create one from scratch. [ We don't use them directly, it is too many (Vector, IXXAT, Softing, National etc), so we have an abstraction layer. ] I am not so sure that GNAT indeed adds forwarding "_" for stdcall. At least the error message you get indicates that linker fails to find "CAN_GetHwParam@16", also no "_" ahead. If I correctly remember, one "PEAK-dongle" had plain ANSI C interface, but it was a time ago. I think that Import (C,... should work. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de