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, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder7.xlned.com!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!news.stack.nl!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Installation problem in Debian 7: gnatcoll-gpl-2013-src Date: Tue, 2 Jul 2013 17:04:21 +0200 Organization: cbb software GmbH Message-ID: References: <1683c2c3-6906-4d54-9321-4e25c7495ecf@googlegroups.com> <87sj02ci0n.fsf@ludovic-brenta.org> <1cqoxo0drwvmy.1o99bt8jysghh.dlg@40tude.net> <17fyzwhfbp2oy$.pg62b9cua2ln.dlg@40tude.net> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: IenaDxMXK2hi7fvYcb+MlQ.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 X-Original-Bytes: 2574 Date: 2013-07-02T17:04:21+02:00 List-Id: On Tue, 2 Jul 2013 07:40:12 -0700 (PDT), Multiplayer1080 wrote: > Hi Dmitry A. Kazakov. Good Day. I'm trying to use the SIMPLE COMPONENTS > version 3.22 by Dmitry A. Kazakov. But the compiler throw me the next message: [...] > /opt/gnat/bin/../libexec/gcc/i686-pc-linux-gnu/4.7.4/ld: cannot find -lodbc32 _______________________________________________________^^^^^ > collect2: error: ld returned 1 exit status > gnatlink: error when calling /opt/gnat/bin/gcc > gnatmake: *** link failed. > > The setup of my project is this: http://www.comelecinca.com/test/Screenshot.png odbc32 is the MS ODBC driver manager. Under Linux you should use unixODBC instead. When you install a prepackaged version of Simple Components on Debian or Fedora these come with the driver manager is preset to unixODBC. Since you seem to use sources, you should select the corresponding project scenario variable "odbc" in the GPS as "unixODBC". Because the default is "ODBC32", which is for Windows. BTW, the folder ./test_components contains components-odbc-odbc_bindings_tests.gpr project. It performs extensive tests of both the bindings and the capacities of the DBMS and its driver you want to access. Do not forget to install unix odbc, a driver for your DBMS (e.g. for PostgreSQL) and configure it (e.g. set up a datasource etc). -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de