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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,dc82f67c5fe19381,start X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!f33g2000vbf.googlegroups.com!not-for-mail From: markp Newsgroups: comp.lang.ada Subject: Calling Ada Library from C++ Date: Mon, 23 Feb 2009 08:14:44 -0800 (PST) Organization: http://groups.google.com Message-ID: <5dba2f32-36d5-4f98-9311-ab695565f5f5@f33g2000vbf.googlegroups.com> NNTP-Posting-Host: 155.104.37.17 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1235405684 30372 127.0.0.1 (23 Feb 2009 16:14:44 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 23 Feb 2009 16:14:44 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: f33g2000vbf.googlegroups.com; posting-host=155.104.37.17; posting-account=jTWBqwoAAABUn9jGA4xSu9A8sRwazGmt User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1),gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:3733 Date: 2009-02-23T08:14:44-08:00 List-Id: 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 for Source_Dirs use ("src1", "src2"); for Object_Dir use "obj"; for Library_Name use "my_library"; for Library_Dir use "lib"; for 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.