[unixODBC-support] Development Environment Setup issue

Wajid Baig wabmca at gmail.com
Fri Sep 14 13:55:26 BST 2012


On Fri, Sep 14, 2012 at 5:48 PM, Wajid Baig <wabmca at gmail.com> wrote:

> Hi Nick,
>
> Thanks for your reply.
>
> To build driver I am using template given in template directory of wham
> folder.
> In that files like SQLConnect.c has log statements.
> Exactly to implement connection with my database and do operation I have
> written my own class.
> I have created instance of my class in SQLConnect.c called low level
> methods to do database operations.
>
> So to build my driver I need log.h and ini.h etc., but these files are
> missing when I installed in say --prefix=/usr/local/unixODBC/include.
>
> I am now wondering what can I do regarding this.
> Will it be legal to use log.h and ini.h of unix ODBC or should I write my
> own.
>
> Thanks,
> Ahmed
>
>
>
> On Fri, Sep 14, 2012 at 12:15 PM, Nick Gorham <nick at lurcher.org> wrote:
>
>> On 14/09/12 00:20, Wajid Baig wrote:
>>
>>> Hi,
>>>  I am developing a driver using unixODBC. I have following issues. I am
>>> blocked please help me.
>>>  1) I have configured and installed 2.2.14 version using
>>> prefix=/usr/local/unixODBC.
>>>
>>
>> Maybe better using a version more recent than 2008
>>
>>  Q) Why are /usr/local/unixODBC folder ini.h and log.h files are missing?
>>>
>> Because they are internal to the build, and not intended for external
>> use.
>>
>>  Q) Without these files how can I build my driver?
>>>
>> Include
>>
>> #include <sql.h>
>> #include <sqlext.h>
>> #include <sqltypes.h>
>> #include <sqlucode.h>
>> #include <odbcinst.h>
>>
>> in exactly the same way as you would on Windows.
>>
>>
>>  Q) My requirement is to use shared object liniking not the static. Is
>>> there a way to link other than dlopen to using shared object in my driver,
>>> without these missing header files?
>>>
>>
>> No, not sure why you would want to do that, just build your driver and
>> link to libodbcinst.so and it all works as it should.
>>
>> --
>> Nick
>> ______________________________**_________________
>> unixODBC-support mailing list
>> unixODBC-support at mailman.**unixodbc.org<unixODBC-support at mailman.unixodbc.org>
>> http://mailman.unixodbc.org/**mailman/listinfo/unixodbc-**support<http://mailman.unixodbc.org/mailman/listinfo/unixodbc-support>
>>
>
>
>
> --
>
> Sincerely
> Baig
> 09176627037
>



-- 

Sincerely
Baig
09176627037
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.unixodbc.org/pipermail/unixodbc-support/attachments/20120914/448d2f8d/attachment.html>


More information about the unixODBC-support mailing list