[unixODBC-support] Re: Having trouble finding sql.h (include files)

Nick Gorham nick.gorham at easysoft.com
Tue Jun 21 18:05:50 BST 2005

Sunitha Kambhampati wrote:

> Sunitha Kambhampati wrote:
>> Hello,
>> I am trying to get an odbc application to work on linux that has 
>> unixODBC installed.  I have got to the point where  I can create db2 
>> datasource and connect to it using isql.  I have a simple program 
>> pretty much taken from one example on the site ( odbc.c) , but  
>> during compiling, it does not find sql.h.  Doing a find on the system 
>> shows that only the db2 install has sql.h etc files. My question is -
>> 1) should unixODBC install give me all the header files necessary 
>> like sql.h, sqlext.h  ?
>> 2) if so,  maybe the install of unixODBC didnt happen correctly , how 
>> can I verify this.
>> Any help is much appreciated.
>> Thanks much,
>> Sunitha
> I downloaded again and I find the sql.h in the tar file . I will try 
> again, maybe somehow the previous install didnt happen correctly.

You need to do a configure; make; make install to get the libs and 
headers in place, and the make install needs to be done by a user with 
permission to write the headers to where they will go. You will see a 
permision error if it fails.


More information about the unixODBC-support mailing list