Re: Visual C++ 2008 Express Edition
Vadim Zeitlin <[email protected]> Tue, 20 Jan 2009 14:30:50 +0100
| Newsgroups | gmane.mail.mahogany.devel |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 20 Jan 2009 02:38:38 +0200 Nerijus Baliunas <[email protected]> wrote: NB> I am trying to compile M with Visual C++ 2008 Express Edition. wx NB> compiled ok, but M fails: NB> NB> Compiling... NB> MObject.cpp NB> C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h(963) : error C2143: syntax error : missing ',' before 'constant' NB> C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h(964) : error C2988: unrecognizable template declaration/definition NB> C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h(964) : error C2059: syntax error : 'constant' NB> C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h(964) : error C2059: syntax error : ')' NB> C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h(964) : error C2065: 'N' : undeclared identifier NB> C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h(964) : error C2090: function returns array NB> C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winnt.h(964) : error C2143: syntax error : missing ')' before '<end Parse>' NB> NB> winnt.h(962) is: NB> extern "C++" // templates cannot be declared to have 'C' linkage NB> template <typename T, size_t N> NB> char (*RtlpNumberOf( UNALIGNED T (&)[N] ))[N]; This is almost certainly because c-client has the nice idea to #define T as 1. Adding #undef T after including its headers should fix this. Regards, VZ ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Mahogany-Developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mahogany-developers
signature.asc
(application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) iEYEABECAAYFAkl10goACgkQBupB3k9sHoYIvACfe0nFlgNUynTuUaOcTrVAY1st JhoAn2aswmSUGgrKttL/+KN6CcWMJrOB =UR28 -----END PGP SIGNATURE-----