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=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.224.4.138 with SMTP id 10mr197635qar.8.1376620691903; Thu, 15 Aug 2013 19:38:11 -0700 (PDT) X-Received: by 10.50.22.98 with SMTP id c2mr317242igf.15.1376620691863; Thu, 15 Aug 2013 19:38:11 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!usenet.blueworldhosting.com!feeder02.blueworldhosting.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!fx3no2647303qab.0!news-out.google.com!he10ni2163qab.0!nntp.google.com!fx3no2647301qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 15 Aug 2013 19:38:11 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=159.245.48.2; posting-account=UaVslQkAAACVs7AM1tLAQ7VDC3JzDHQw NNTP-Posting-Host: 159.245.48.2 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: collect2: ld returned 1 exit status From: Dwiki Injection-Date: Fri, 16 Aug 2013 02:38:11 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Received-Bytes: 3346 Xref: news.eternal-september.org comp.lang.ada:16886 Date: 2013-08-15T19:38:11-07:00 List-Id: Pada Kamis, 15 Agustus 2013 19:27:15 UTC+7, Dmitry A. Kazakov menulis: > On Thu, 15 Aug 2013 03:22:59 -0700 (PDT), Dwiki wrote: > > > > > i try to compile a source code using gnade, but it show error > > > > > > c:\gnade\gnu-db-sqlcli.o: In function `gnu__db__sqlcli__sqldatasources': > > > c:/gnade/win32-include/gnu-db-sqlcli.adb:496: undefined reference to `_SQLDataSources@40' > > > > Use nm to list entry points of the dll, e.g. > > > > $ nm odbc32.lib > > > > In particular SQLDataSources shows: > > > > 00000000 I .idata$4 > > 00000000 I .idata$5 > > 00000000 T .text > > 00000000 I __imp__SQLDataSources@32 > > U __IMPORT_DESCRIPTOR_ODBC32 > > 00000000 T _SQLDataSources@32 > > > > > i have add -lodbc32 but the error still there. > > > > > > do i missed something? > > > > @N suffix of a decorated name indicates the number of bytes the operation > > uses for its arguments (stdcall convention). > > > > Since you have it wrong, that suggests the version of GNADE you are using > > deploys wrong types for the arguments of SQLDataSource. Which should not be > > very surprising, because as I said before, MS had sufficiently changed the > > ODBC API in order to accommodate 64-bit applications, which happened > > *after* the last time GNADE was maintained. Possibly, you are compiling for > > 64-bit instead of 32-bit. > > > > If you are up to revive GNADE ODBC, here is the MS page describing the > > changes: > > > > http://support.microsoft.com/kb/298678 > > > > -- > > Regards, > > Dmitry A. Kazakov > > http://www.dmitry-kazakov.de Dmitry, i think i dont understand the page :( for example with this section Changes in SQL Data Types #ifdef WIN32 typedef SQLULEN SQLROWCOUNT; typedef SQLULEN SQLROWSETSIZE; typedef SQLULEN SQLTRANSID; typedef SQLLEN SQLROWOFFSET; #endif what should i do then in my ADA code? ive been searching similar code in GNADE but i cant, do you have another clue?. FYI, there is warning "warning: no compiler specified for language 'Gesql', ignoring all its sources Builder" can i just ignore it?