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=-1.0 required=5.0 tests=BAYES_00,FORGED_HOTMAIL_RCVD2, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,889b07ac9e6ac6a3 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.204.129.200 with SMTP id p8mr278000bks.2.1330580761180; Wed, 29 Feb 2012 21:46:01 -0800 (PST) Path: t13ni86080bkb.0!nntp.google.com!news2.google.com!postnews.google.com!l7g2000vbw.googlegroups.com!not-for-mail From: Gautier write-only Newsgroups: comp.lang.ada Subject: Re: Using dll from a C# code Date: Wed, 29 Feb 2012 21:38:09 -0800 (PST) Organization: http://groups.google.com Message-ID: <2d391aa2-23ed-4c29-96a5-3292ae13bfb7@l7g2000vbw.googlegroups.com> References: <3622013.252.1330516368698.JavaMail.geo-discussion-forums@ynkz21> <189548.691.1330568785536.JavaMail.geo-discussion-forums@ynlt17> NNTP-Posting-Host: 81.62.144.164 Mime-Version: 1.0 X-Trace: posting.google.com 1330580760 18749 127.0.0.1 (1 Mar 2012 05:46:00 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 1 Mar 2012 05:46:00 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: l7g2000vbw.googlegroups.com; posting-host=81.62.144.164; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11,gzip(gfe) Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-02-29T21:38:09-08:00 List-Id: On 1 mar, 03:26, "Rego, P." wrote: > So when I make gnatmake main -largs -lsimple, it returns me > gcc -c main.adb > gcc -c simple.ads > gnatbind -x main.ali > gnatlink main.ali -lsimple > .\main.o:main.adb:(.text+0x21): undefined reference to `Verify@0' > collect2: ld returned 1 exit status > gnatlink: error when calling C:\GNAT\2011\bin\gcc.exe > gnatmake: *** link failed. > > I sense that the problem is a tiny mistake (but where?) Are actually using the .NET-targetting GNAT ? I have the impression you are using the plain Windows one, it should be something like dotnetgnatmake.exe - look into your C:\GNAT\2011\bin directory. I suppose you also installed GNAT for .NET ? _________________________ Gautier's Ada programming http://sf.net/users/gdemont