Re: MinGW + Windows

Paul Thurston <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <2A93B3F6EB39EA48A0D41234D272A82A5F501E6AB9@EXVMBX020-11.exch020.serverdata.net>
I'm certain that you'll get linker errors if you don't link in FreeTDS.lib.

I may have had the ODBC stuff in the test app so that I could test a "Hello ODBC" run to check that the database was up.
It has been awhile, so I don’t recall the specifics precisely.

It may not be necessary to link in the ODBC libraries to run FreeTDS.



From: [email protected] [mailto:[email protected]] On Behalf Of Harry Sfougaris
Sent: Friday, May 07, 2010 11:48 AM
To: FreeTDS Development Group
Subject: Re: [freetds] MinGW + Windows


Are you using db-library, or the ODBC thing?

I am trying to use db-library, and I don't have odbc*.lib and FreeTDS.lib linked.



Thanks,

Harry



On 07 Μαϊ 2010, at 6:40 μ.μ., Paul Thurston wrote:



> Harry:

>

> In VC9, here are the list of additional libraries I needed to link into to my "hello SQL" app to drive FreeTDS:

>

> ws2_32.lib

> odbc32.lib

> odbccp32.lib

> FreeTDS.lib

> dblib.lib

> libTDS.lib

>

> Best,

>

> Paul

>

>

> From: [email protected] [mailto:[email protected]] On Behalf Of Harry Sfougaris

> Sent: Friday, May 07, 2010 11:38 AM

> To: FreeTDS Development Group

> Subject: Re: [freetds] MinGW + Windows

>

>

>

>

> On 07 Μαϊ 2010, at 4:46 μ.μ., [email protected]<mailto:[email protected]<mailto:[email protected]%3cmailto:[email protected]>> wrote:

>

>

>

>> On Fri, May 07, 2010 at 07:26:06AM +0300, Harry Sfougaris wrote:

>

>>> I'm not interested in doing it from the command line (as opposed to from within Visual Studio), but rather to compile it with a different compiler.

>

>>

>

>> Perhaps if you post the link command and the first 10 so errors, we'll be able to help.  Also, how was Qt compiled?

>

>>

>

> Well I don't even know how to get started...

>

> The only thing I found was to download msys, so I can run configure and make.

>

> This creates libsybdb.a, libsybdb.dll.a mad libsybdb.la files.

>

> Is this what I should be doing to start with?

>

> I really have no idea how Qt was compiled; it is the download LGPL version 4.6.2 from their website.

>

> What exactly should I look for?

>

>

>

>> FreeTDS is a C library.  On a Windows platform it will take the form of a COFF binary, no matter what compiler is used.  As I'm sure you know, the *compiler* per se just converts C to object code.  But it can be told to make certain assumptions with every header file about the libraries its output will be linked to.  For everything to work properly, all components in the final executable need to share a single definition of each global name e.g. strcpy(3).  If some of your code is linked to glibc and other to Microsofts's C runtime library, I'd expect problems.

>

>>

>

> That's the issue I think when compiling with Visual Studio, and trying to use the .lib with Qt.

>

>

>

>> HTH.

>

>>

>

>> --jkl

>

>> _______________________________________________

>

>> FreeTDS mailing list

>

>> [email protected]<mailto:[email protected]<mailto:[email protected]%3cmailto:[email protected]>>

>

>> http://lists.ibiblio.org/mailman/listinfo/freetds

>

>

>

> Harry Sfougaris

>

>

>

>

>

>

>

>

>

> _______________________________________________

>

> FreeTDS mailing list

>

> [email protected]<mailto:[email protected]<mailto:[email protected]%3cmailto:[email protected]>>

>

> http://lists.ibiblio.org/mailman/listinfo/freetds

> _______________________________________________

> FreeTDS mailing list

> [email protected]<mailto:[email protected]>

> http://lists.ibiblio.org/mailman/listinfo/freetds



Harry Sfougaris









_______________________________________________

FreeTDS mailing list

[email protected]<mailto:[email protected]>

http://lists.ibiblio.org/mailman/listinfo/freetds
_______________________________________________
FreeTDS mailing list
[email protected]
http://lists.ibiblio.org/mailman/listinfo/freetds
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.