Re: freetds-current on win32
Paul Thurston <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <2A93B3F6EB39EA48A0D41234D272A82A5F5029CBF7@EXVMBX020-11.exch020.serverdata.net> |
Several users reported this same behavior at compile time. I'm able to reproduce the with builds v0.83_20100509 and v0.83_20100508. I'm on Windows 7 Professional and Visual Studio 2010 (VC10). No such issues occur with the v0.82 stable build. Apparently, Damien has a collection of fixed which allow compilation of the build. From: [email protected] [mailto:[email protected]] On Behalf Of Frediano Ziglio Sent: Tuesday, May 11, 2010 3:44 PM To: FreeTDS Development Group Subject: Re: [freetds] freetds-current on win32 Il giorno 11/mag/2010, alle ore 18.26, Paul Thurston <[email protected] <mailto:[email protected]%20%20> > ha scritto: > Damien: > > What change did you make do get v0.83_20100511 compile under windows? > I'm running into an error in tdsodbc.h: #error SIZEOF_SQLWCHAR not > supported !! > ??? This is strange, are you sure some header is not missing? I think out solution file include them. Some header for Windows reside in win32 directory, not in include one > See below for what I've done so far. > > Thanks, > > Paul > > <fakepoll.h> > > #if !defined(_WIN32) > > #define POLLIN 0x0001 > #define POLLOUT 0x0004 > #define POLLERR 0x0008 > #define POLLRDNORM POLLIN > #define POLLRDBAND POLLIN > #define POLLPRI POLLIN > #define POLLWRNORM POLLOUT > #define POLLWRBAND POLLOUT > #define POLLHUP 0x0010 > #define POLLNVAL 0x0020 > > typedef struct pollfd { > int fd; /* file descriptor to poll */ > short events; /* events of interest on fd */ > short revents; /* events that occurred on fd */ > } pollfd_t; > > #endif > > <net.c> > > #ifdef _WIN32 > #define USE_NODELAY 1 > #define SOL_TCP 1 > int > _tds_socket_init(void) > { > WSADATA wsadata; > > return WSAStartup(MAKEWORD(1, 1), &wsadata); > } > > void > _tds_socket_done(void) > { > WSACleanup(); > } > #endif > > These functions should be defined in some file (I don't remember which ones but even these files are in win32 directory) Freddy77 > > > From: [email protected] [mailto:freetds- > [email protected]] On Behalf Of Damien Churchill > Sent: Tuesday, May 11, 2010 7:49 AM > To: FreeTDS Development Group > Subject: [freetds] freetds-current on win32 > > > I grabbed the latest freetds-current.tgz off the website, and opened > the solution file in the root of the project using VS2008, compiled > (after the fixes below) and my resulting *.libs are weighing in at > around 2.2mb. Does anyone know why they are so big? I remember for > > 0.82 they were only 300kb or something similar! > > > > I disabled the definition of the poll flags, as per the other thread > on compiling freetds-current and fixed the errors in libTDS/net.c as > well in order to compile successfully. > > > > If anyone can shed any light on the size of my libs it would be > greatly appreciated :) > > > > Damien > > _______________________________________________ > > 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 _______________________________________________ FreeTDS mailing list [email protected]<mailto:[email protected]> http://lists.ibiblio.org/mailman/listinfo/freetds