Re: MinGW + Windows
Paul Thurston <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <2A93B3F6EB39EA48A0D41234D272A82A5F501E6AC3@EXVMBX020-11.exch020.serverdata.net> |
Harry: Not a problem. I have a 32-bit release build available. Will that work for you? Paul From: [email protected] [mailto:[email protected]] On Behalf Of Harry Sfougaris Sent: Friday, May 07, 2010 12:03 PM To: FreeTDS Development Group Subject: Re: [freetds] MinGW + Windows Would it be a problem if I asked you to send me the libs? For now it is very important for me to just see it working through Qt, and with good build of the libraries, I can see whether I need to compile it with another compiler, or Visual Studio is just fine. Thanks, Harry On 07 Μαϊ 2010, at 6:55 μ.μ., Paul Thurston wrote: > Harry: > > I'm using dblib under Windows. There are no ODBC DSNs configured under Windows to support the application. > > Paul > > > 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]<mailto:[email protected]%3cmailto:[email protected]%3cmailto:[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]<mailto:[email protected]%3cmailto:[email protected]%3cmailto:[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]<mailto:[email protected]%3cmailto:[email protected]%3cmailto:[email protected]%3cmailto:[email protected]>>> > >> > >> http://lists.ibiblio.org/mailman/listinfo/freetds > >> _______________________________________________ > >> 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