Problem compiling in mac os with unix odbc

Leonardo De La Cerda <[email protected]> Wed, 31 Oct 2018 17:17:53 -0600
Newsgroups gmane.comp.db.postgresql.odbc
Message-ID <CADr7gDr00ALyKZxFCqpY8gBsPhe48aAUVV4eX=X8TcGrUj0Fiw@mail.gmail.com>
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