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=-0.3 required=5.0 tests=BAYES_00,LOTS_OF_MONEY, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 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!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: collect2: ld returned 1 exit status Date: Thu, 15 Aug 2013 14:27:15 +0200 Organization: cbb software GmbH Message-ID: References: Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: RXJ+FkxPc8/mFTAaIGiJWQ.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:16876 Date: 2013-08-15T14:27:15+02:00 List-Id: 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