From: "Rego, P." <pvrego@gmail.com>
Subject: Re: Using dll from a C# code
Date: Wed, 29 Feb 2012 18:26:25 -0800 (PST)
Date: 2012-02-29T18:26:25-08:00 [thread overview]
Message-ID: <189548.691.1330568785536.JavaMail.geo-discussion-forums@ynlt17> (raw)
In-Reply-To: <e84193f9-8470-41b8-aae3-adce7705cf98@c21g2000yqi.googlegroups.com>
> You have to be sure you are using the compiler for .NET; I think
> there's something about qualifying names too, but I don't remember
> what. You may want to check out the import pragma on page 16 in this
> pdf: http://www.usafa.edu/df/dfe/dfer/centers/accr/docs/carlisle2006b.pdf
Quite interesting this paper. But I still could not import the function with success. Actually I changed the simple.cs to
// simple.cs
// compile with csc /t:library simple.cs
namespace Simple{
public class VerifyClass{
public static bool Verify(){
return true;
}
}
}
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?)
next prev parent reply other threads:[~2012-03-01 2:26 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-29 11:52 Using dll from a C# code Rego, P.
2012-02-29 20:00 ` Shark8
2012-03-01 2:26 ` Rego, P. [this message]
2012-03-01 5:38 ` Gautier write-only
2012-03-01 11:41 ` Rego, P.
2012-03-01 13:16 ` Georg Bauhaus
2012-03-01 14:38 ` gautier_niouzes
2012-03-01 15:15 ` Rego, P.
2012-03-01 16:24 ` Gautier write-only
2012-03-02 20:03 ` Rego, P.
2012-03-01 16:25 ` Georg Bauhaus
2012-03-02 21:15 ` Rego, P.
2012-03-02 3:37 ` mjamesb
2012-03-02 21:17 ` Rego, P.
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox