Skip to Content.
Sympa Menu

freetds - [freetds] C/C++: Library usage in linux and windows

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Juan Perez" <laslistas AT gmail.com>
  • To: FreeTDS AT lists.ibiblio.org
  • Subject: [freetds] C/C++: Library usage in linux and windows
  • Date: Wed, 5 Sep 2007 13:12:36 +0200

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...




Archive powered by MHonArc 2.6.24.

Top of Page