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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,6c0fedd136c7b307 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!news-zh.switch.ch!switch.ch!news.ip-plus.net!newsfeed.ip-plus.net!news.post.ch!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: undefined reference to `adainit' Date: Mon, 18 Feb 2008 08:04:47 +0100 Organization: Swisscom IP+ (post doesn't reflect views of Swisscom) Message-ID: <47b92e0f$1@news.post.ch> References: <47b765d2$1@news.broadpark.no> NNTP-Posting-Host: 194.41.146.1 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: atlas.ip-plus.net 1203318291 10183 194.41.146.1 (18 Feb 2008 07:04:51 GMT) X-Complaints-To: abuse@ip-plus.net NNTP-Posting-Date: Mon, 18 Feb 2008 07:04:51 +0000 (UTC) User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) In-Reply-To: <47b765d2$1@news.broadpark.no> X-Original-NNTP-Posting-Host: w03duo.pnet.ch X-Original-Trace: 18 Feb 2008 08:04:47 +0100, w03duo.pnet.ch Xref: g2news1.google.com comp.lang.ada:19849 Date: 2008-02-18T08:04:47+01:00 List-Id: news.broadpark.no schrieb: > .NET. I made a small project and compiled it as follows: > > gnatmake -c api > gnatbind -n api > gnatdll -d api.dll api.ali > > Does anyone know what to do? The GPS project file look like this: And where is the "-P" option which tells gnat make to actually use the project file? You should use: gnat make -P api and nothing else. Using gnatbind and gnatdll is more or less depreciated - an up to date "gnat make" can do it all for you. Have a look at the mkutils project which solves a similar problem: http://code.google.com/p/mkutils and here especially the build script (gnat make and nothing else): http://code.google.com/p/mkutils/source/browse/trunk/All.btm and the main project file: http://code.google.com/p/mkutils/source/browse/trunk/MK_Utils.gpr Regards Martin -- mailto://krischik@users.sourceforge.net Ada programming at: http://ada.krischik.com