duhber / rcf-cpp

Automatically exported from code.google.com/p/rcf-cpp
0 stars 0 forks source link

use _WIN32_WINNT failed(Build RCF1.1 with VC6.0) #23

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
WinXP VC6.0 SP6

Please provide any additional information below.

When Build RCF1.1 with VC6.0, I got following errors 

error C2146: syntax error : missing ',' before identifier 'CERT_CONTEXT'
error C2065: 'CERT_CONTEXT' : undeclared identifier

then I #define _WIN32_WINNT = 0x0500, and get follwing errors,which is the 
typical 102 errors of winsock.How to fix it, Jarl? Thanks very much.

d:\f(program files)\microsoft visual studio\vc98\include\mswsock.h(69) : 
error C2065: 'SOCKET' : undeclared identifier
d:\f(program files)\microsoft visual studio\vc98\include\mswsock.h(69) : 
error C2146: syntax error : missing ')' before identifier 's'
d:\f(program files)\microsoft visual studio\vc98\include\mswsock.h(69) : 
warning C4229: anachronism used : modifiers on data are ignored
d:\f(program files)\microsoft visual studio\vc98\include\mswsock.h(73) : 
error C2059: syntax error : ')'
...................

Original issue reported on code.google.com by lor...@126.com on 15 Sep 2009 at 8:59

GoogleCodeExporter commented 9 years ago

Yes, this is a known issue, and fixed in the upcoming 1.2 release. For now, on 
vc6, 
you need to define _WIN32_WINNT to 0x500 or later.

To fix the Winsock errors, it should be enough to define WIN32_LEAN_AND_MEAN in 
your 
project settings ...

Original comment by jarl.lin...@gmail.com on 16 Sep 2009 at 12:01

GoogleCodeExporter commented 9 years ago

Original comment by jarl.lin...@gmail.com on 14 Feb 2010 at 9:14

GoogleCodeExporter commented 9 years ago

Original comment by jarl.lin...@gmail.com on 14 Feb 2010 at 9:15

GoogleCodeExporter commented 9 years ago

Original comment by jarl.lin...@gmail.com on 16 Feb 2010 at 2:37