Re: freetds-current on win32

Paul Thurston <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <2A93B3F6EB39EA48A0D41234D272A82A5F501E7440@EXVMBX020-11.exch020.serverdata.net>
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 !!

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




From: [email protected] [mailto:[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]>

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.