Re: [Quickfix-developers] Winsock errors
Brought to you by:
orenmnero
From: Djalma R. d. S. F. <drs...@gm...> - 2006-11-13 11:20:55
|
Hi Chris, >>C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\Winsock2.h >>(99) : error C2011: 'fd_set' : 'struct' type redefinition C:\Program Files\Microsoft Visual >>Studio\VC98\INCLUDE\Winsock2.h(134) : warning C4005: 'FD_SET' : macro redefinition >> C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\winsock.h(83) : see >>previous definition of 'FD_SET' By seeing your compiler errors, It it is clear that you have a conflict with winsock and winsock2. If the trick with _WINSOCKAPI_ did not work, maybe you have another header besides windows.h that is also including winsock.h (maybe another library). See that the trick is more difficult to use if you do not have a stdafx.h(pre-compiled header). You need to guarantee that the definition is made before windows.h is included. Djalma Rosa dos Santos Filho On 11/13/06, Chris Griggs <ch...@gr...> wrote: > > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > I'm afraid that hasn't done the trick. Is there anything else I can try? > > Chris Griggs. > > On Fri, 10 Nov 2006 13:26:51 -0300, "Djalma Rosa dos Santos Filho" > <drs...@gm...> wrote: > > > Hi Chris, > > > > > > I am not sure if this is the same, but I had similar problem in the > past. > > > Try doing the following: #define _WINSOCKAPI_ before including > windows.h > > > and > > > the redefinition errors should disappear. > > > > > > #define _WINSOCKAPI_ > > > // _WINSOCKAPI_ prevents inclusion of winsock.h in windows.h > > > // quickfix requires linking with winsock2 > > > ... > > > #include <windows.h> > > > ... > > > > > > BR, > > > Djalma Rosa dos Santos Filho > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > |