I'm using Visual C++ 2008 Express Edition 
(http://www.microsoft.com/express/vc/). The exact version is 9.0.30729.1 SP.

Hope that helps!

Hugh

Smith, Matthew J. wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hugh --
>   Thanks for the patch -- I'll try it out soon.  Which version of VS are
> you using?
> Thanks,
> - -Matt
>
> Hugh Eaves wrote:
>   
>> It appears the current mod_auth_cas (1.0.8) does not build under Win32, 
>> at least according to the instructions in README.Win32.
>>
>> When trying to build the module, I get several C2275 errors:
>>
>> Error C2275 : illegal use of this type as an expression
>>
>> There is more information on the error here: 
>> http://msdn.microsoft.com/en-us/library/76c9k4ah.aspx
>>
>> The problem is that all variable declarations must be at the top of the 
>> function declaration in the MS C++ compiler. In the current source code, 
>> the entry/exit debug statements come before some of the variable 
>> declarations, so the build fails. Here's a small patch to mod_auth_cas.c 
>> (1.0.8 version) that fixes the problem and allows it to build with the 
>> Win32 / VC++ compiler.
>>
>> ====== CUT HERE =====
>> 421a422
>>  >     cas_dir_cfg *d;
>> 426c427
>> <     cas_dir_cfg *d = ap_get_module_config(r->per_dir_config, 
>> &auth_cas_module);
>> ---
>>  >     d = ap_get_module_config(r->per_dir_config, &auth_cas_module);
>> 1404c1405,1407
>> <
>> ---
>>  > #ifdef WIN32
>>  >     WSADATA wsaData;
>>  > #endif
>> 1408d1410
>> <     WSADATA wsaData;
>>
>>
>>
>>
>>
>>     
>
>
> - --
> Matthew J. Smith
> University of Connecticut ITS
> [email protected]
> PGP KeyID: 0xE9C5244E
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
>
> iD8DBQFJ3krtGP63pOnFJE4RAmoPAJ0QtejGSYvsYw12Bd0eLIn3y9TsJgCfZ7Gu
> 8n7Z3wRDIvj5Ygl5igd1t3I=
> =7ms8
> -----END PGP SIGNATURE-----
>
>   

-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-dev

Reply via email to