[freetds] C/C++: Library usage in linux and windows
Juan Perez
laslistas at gmail.com
Wed Sep 5 07:12:36 EDT 2007
Hi all:
I am new to FreeTDS.
We are developing an application that have to run in Windows and Linux.
The program is written in C/C++. The same application works in Linux
and in Windows.
This application has to be connections to Microsoft Sql Server.
Simple connections: some select and some simple insert sentences.
I found FreeTDS and I supose this could make the work.
I am able to generate dblib.lib, FreeTDS.dll and libTDS.lib with
MSVC (and i supose than i can generate this libraries for Linux).
I read in the documentation that the most stable is dblib, so i
decide to use it. But the problem is that i don´t know how.
My first testing place is Windows. I want to create a simple
project that conects to a database, makes a select and prints the
result.
So I included in the project dblib.lib library and... i dont know
what include files y need. I try to compile the samples
(src\odbc\unittests) without result.
I know i am making something bad, but i don´t know what.
Can somebody help me?
Thanks in advance and excuse me for my poor english.
bye...
More information about the FreeTDS
mailing list