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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,83657220a5df6295 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-12-12 03:01:20 PST Path: supernews.google.com!sn-xit-02!supernews.com!news-x.support.nl!newspeer.clara.net!news.clara.net!newsfeed01.sul.t-online.de!newsfeed00.sul.t-online.de!t-online.de!grolier!oleane.net!oleane!jussieu.fr!enst!enst.fr!not-for-mail From: Duncan Sands Newsgroups: comp.lang.ada Subject: Re: c++ interface -- clarifications Date: Tue, 12 Dec 2000 09:37:14 +0100 (CET) Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 976618868 56300 137.194.161.2 (12 Dec 2000 11:01:08 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Tue, 12 Dec 2000 11:01:08 +0000 (UTC) To: comp.lang.ada@ada.eu.org Return-Path: X-Mailer: ELM [version 2.4ME+ PL66 (25)] Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0beta5 Precedence: bulk List-Id: comp.lang.ada mail<->news gateway Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: supernews.google.com comp.lang.ada:2988 Date: 2000-12-12T09:37:14+01:00 I have successfully used gnat and gcc 2.95.2 under windows to mix Ada, C and Fortran code. However there was a problem in that some static variables were not being initialized properly in the C code (compiled using 2.95.2) when linked with code compiled with 2.8.1 (Ada or C). I got around this by encapsulating all code compiled with 2.95.2 in dlls, and then everything worked fine. I hope this helps, Duncan Sands.