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,58ca990a20ca948e X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Date: Fri, 06 Feb 2009 20:56:17 +0100 From: Gautier User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.18) Gecko/20081031 SeaMonkey/1.1.13 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: QtSql problem References: <498bf574_4@news.bluewin.ch> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 85.1.231.188 X-Original-NNTP-Posting-Host: 85.1.231.188 Message-ID: <498c95db$1_4@news.bluewin.ch> X-Trace: news.bluewin.ch 1233950171 85.1.231.188 (6 Feb 2009 20:56:11 +0100) Organization: Bluewin AG Complaints-To: abuse@bluewin.ch X-Original-NNTP-Posting-Host: 127.0.0.1 Path: g2news1.google.com!news1.google.com!news.glorb.com!wns14feed!worldnet.att.net!164.128.36.58!news.ip-plus.net!newsfeed.ip-plus.net!news.bluewin.ch!not-for-mail Xref: g2news1.google.com comp.lang.ada:3580 Date: 2009-02-06T20:56:17+01:00 List-Id: tworoses1@gmail.com: > When I make tb_wrap I get: > Builder results (1 item) > b~tb_wrap.adb (1 item) > 182:1 undefined reference to `_ada_tb_wrap' > > Line 182 of b~tb_wrap.adb is ' Ada_Main_Program;' TB_Wrap is generic, there is no sense to build them (it's mysterious why this version of GNAT even tries to bind it). Say, your program is QtSQL_Test. Then you make a mini file QtSQL_Test_TB.ads with this: with TB_Wrap, QtSQL_Test; procedure QtSQL_Test_TB is new TB_Wrap(QtSQL_Test); and you build QtSQL_Test_TB and you have your nice trace-back (you could ask: why the hell AdaCore just doesn't integrate something like the few lines of TB_Wrap in their binder code ?). _________________________________________________________ Gautier's Ada programming -- http://sf.net/users/gdemont/ NB: For a direct answer, e-mail address on the Web site!