On Tue, 20 Jan 2009 02:38:38 +0200 Nerijus Baliunas 
<neri...@users.sourceforge.net> 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

Attachment: pgpirBLlRLf9V.pgp
Description: PGP signature

------------------------------------------------------------------------------
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
Mahogany-Developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mahogany-developers

Reply via email to