Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gIMip-0007lD-2y for pgsql-odbc@arkaria.postgresql.org; Thu, 01 Nov 2018 23:49:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gIMin-0003uM-Ge for pgsql-odbc@arkaria.postgresql.org; Thu, 01 Nov 2018 23:49:53 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gIMin-0003uF-AL for pgsql-odbc@lists.postgresql.org; Thu, 01 Nov 2018 23:49:53 +0000 Received: from mail02.asahi-net.or.jp ([202.224.55.14]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gIMie-0006yL-Py for pgsql-odbc@postgresql.org; Thu, 01 Nov 2018 23:49:52 +0000 Received: from [192.168.0.4] (KD124208079206.ppp-bb.dion.ne.jp [124.208.79.206]) (Authenticated sender: GQ9H-INUE) by mail02.asahi-net.or.jp (Postfix) with ESMTPA id 1817F1158B3; Fri, 2 Nov 2018 08:49:39 +0900 (JST) Subject: Re: Problem compiling in mac os with unix odbc To: Leonardo De La Cerda References: Cc: pgsql-odbc@postgresql.org From: "Inoue, Hiroshi" Message-ID: <130d636d-e1f9-abd4-bdb0-115bad0ddccc@dream.email.ne.jp> Date: Fri, 2 Nov 2018 08:49:38 +0900 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------E817D378BF2F748333D57BC1" Content-Language: en-US X-Antivirus: AVG (VPS 181101-6, 2018/11/02), Outbound message X-Antivirus-Status: Clean List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------E817D378BF2F748333D57BC1 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Hi Leonardo, On 2018/11/01 8:17, Leonardo De La Cerda wrote: > Hi pgsql odbc folks, > > I'm having problems compiling this code. > > I installed unixodbc like this: > > brew install unixodbc > > > I'm running this to compile it > > ./configure --with-unixodbc --with-odbcinst=/Users/myself/unixodbc > make > > > But I'm facing some errors, all similar to this one: > > odbcapi.c:76:1: error: conflicting types for 'SQLBindCol' > SQLBindCol(HSTMT StatementHandle, > ^ > /usr/local/include/sql.h:590:24: note: previous declaration is here > SQLRETURN  SQL_API SQLBindCol(SQLHSTMT StatementHandle, > Could you show me the declaration of SQLBindCol() in /usr/local/include/sql.h? regards, Hiroshi Inoue >  ^ > > > > Could you help me out? > Do you know what I'm doing wrong? > > -- > Leonardo de la Cerda > Datometry / Agave Lab --- このメールは、AVG によってウイルス チェックされています。 http://www.avg.com --------------E817D378BF2F748333D57BC1 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit Hi Leonardo,

On 2018/11/01 8:17, Leonardo De La Cerda wrote:
Hi pgsql odbc folks,

I'm having problems compiling this code.

I installed unixodbc like this:
brew install unixodbc

I'm running this to compile it
./configure --with-unixodbc --with-odbcinst=/Users/myself/unixodbc
make

But I'm facing some errors, all similar to this one:
odbcapi.c:76:1: error: conflicting types for 'SQLBindCol'
SQLBindCol(HSTMT StatementHandle,
^
/usr/local/include/sql.h:590:24: note: previous declaration is here
    SQLRETURN  SQL_API SQLBindCol(SQLHSTMT StatementHandle,

Could you show me the declaration of SQLBindCol() in /usr/local/include/sql.h?

regards,
Hiroshi Inoue

                       ^ 


Could you help me out?
Do you know what I'm doing wrong?

--
Leonardo de la Cerda
Datometry / Agave Lab

ウイルス フリー。 www.avg.com
--------------E817D378BF2F748333D57BC1--