Hi James, This situation arose a few other times while I was porting Qpid to Windows. The approach taken was to rename the item in Qpid to avoid Microsoft's macro. I haven't tried anything related to Win7, so haven't hit that one, but if you attach a patch to a JIRA entry, I'll help get it into Qpid.
-Steve > -----Original Message----- > From: James Mansion [mailto:ja...@mansionfamily.plus.com] > Sent: Thursday, March 12, 2009 4:19 PM > To: dev@qpid.apache.org > Subject: Build error for qpid m4 with Win7 SDK > > > I'm trying to build M4 of AMQP on XP with the Win7 SDK Beta, and I'm > seeing that > > Manageable::STATUS_INVALID_PARAMETER > > is being expanded to: > > Manageable::((DWORD )0xC000000DL); > > I think this is because src\qpid/sys/windows/uuid.h has > included rpc.h > and included a lot of the SDK as a result. > > STATUS_INVALID_PARAMETER is defined in ntstatus.h and winnt.h. > > The include structure is rather Byzantine - I see there's a > JIRA to tidy > things up, though that is focussed on client applications. > > I suspect that one way or another this will bite again even if > sufficient 'undefs' are added in the code now. > > I know this is Microsoft's bad for namespace pollution, but the > practical answer is to change the name of this constant. > > Any plans? > > James > > > > --------------------------------------------------------------------- > Apache Qpid - AMQP Messaging Implementation > Project: http://qpid.apache.org > Use/Interact: mailto:dev-subscr...@qpid.apache.org > --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:dev-subscr...@qpid.apache.org