Problem compiling in mac os with unix odbc

From: Leonardo De La Cerda <leonardo(at)agavelab(dot)com>
To: pgsql-odbc(at)postgresql(dot)org
Subject: Problem compiling in mac os with unix odbc
Date: 2018-10-31 23:17:53
Message-ID: CADr7gDr00ALyKZxFCqpY8gBsPhe48aAUVV4eX=X8TcGrUj0Fiw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

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 help me out?
Do you know what I'm doing wrong?

--
Leonardo de la Cerda
Datometry / Agave Lab

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message Takahashi, Ryohei 2018-11-01 06:57:42 RE: SQLExecDirectW returns SQL_SUCCESS even if sql finishes with error
Previous Message Adrian Klaver 2018-10-31 12:51:55 Re: Fwd: Log file