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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,dc82f67c5fe19381 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!s20g2000yqh.googlegroups.com!not-for-mail From: Manuel Gomez Newsgroups: comp.lang.ada Subject: Re: Calling Ada Library from C++ Date: Mon, 23 Feb 2009 12:41:19 -0800 (PST) Organization: http://groups.google.com Message-ID: <55e49c0d-6b40-4e7b-8925-98d3a016a91b@s20g2000yqh.googlegroups.com> References: <5dba2f32-36d5-4f98-9311-ab695565f5f5@f33g2000vbf.googlegroups.com> NNTP-Posting-Host: 79.147.100.85 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1235421679 13845 127.0.0.1 (23 Feb 2009 20:41:19 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 23 Feb 2009 20:41:19 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: s20g2000yqh.googlegroups.com; posting-host=79.147.100.85; posting-account=wH6HYAoAAAAK7zncUBGPTSTVRKG7WqMb User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; es-ES; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.04 (hardy) Firefox/3.0.6,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:4713 Date: 2009-02-23T12:41:19-08:00 List-Id: I cannot help you myself, but take a loot at this wikibook article, it might be useful: http://en.wikibooks.org/wiki/Ada_Programming/Platform/Windows/Visual_C%2B%2= B_-_GNAT_interface On 23 feb, 17:14, markp wrote: > Hello, > > I am trying to make a static Ada library that is callable from Visual C > ++. I have created a my_library.a file by using a GNAT project file > similar to the following: > > project My_Lib is > =A0 =A0for Source_Dirs use ("src1", "src2"); > =A0 =A0for Object_Dir use "obj"; > =A0 =A0for Library_Name use "my_library"; > =A0 =A0for Library_Dir use "lib"; > =A0 =A0for Library_Kind use "static"; > end My_lib; > > I am not familiar with adding libraries to Visual C++. It appears the > convention is a ".lib" file vice a ".a". Am I on the right track with > this? Can I simply rename my ".a" file, or use it as is? How do I link > it into the C++ application? Any help provided on this would be very > much appreciated. > > Thank you.