Article View: comp.sys.mac.programmer.codewarrior
Article #1479Re: c++ and including ocidl.h build problem
From: David Alter
Date: Fri, 20 Feb 2004 22:01
Date: Fri, 20 Feb 2004 22:01
28 lines
2067 bytes
2067 bytes
Hi Ron, > >I'm having a problem with compiling c++ and including <ocidl.h> for > >windows. I'm using Codewarrior 8.0. When I compiled this project as C > >it worked fine. Once I enable C++ I get the following error, and 70 or > >so like it. > > Windows uses some stuff that is not legal C++ they treat struct and > class as different types with different rules. While C++ says they are > the same, (just one is public by default the other private by default) > > Do you have treat all warnings as errors on? If so turn off the > inconsidtnet use of class and struct keywords > No I do not. And I already have "Inconsistent Use of 'class' and 'struct' Keywords" disabled. Do you have nay other ideas? > If that doesn't work can you preprocess a file that has this error and > send it to me (strip out as much as possible that still leaves the > error) and I'll check it out. I have packaged up a project and sent it to you. Please let me know what you find out. Thanks for the help -dave >
Technical Details
Message-ID:
<e4af91cf.0402201401.a4b1b52@posting.google.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mailReferences:
<e4af91cf.0402192248.476671ee@posting.google.com> <mwron-4D943E.09511520022004@news.newsguy.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f635e,6d5d8293494eb1fb X-Google-Attributes: gidf635e,public X-Google-Thread: fd047,6d5d8293494eb1fb X-Google-Attributes: gidfd047,public X-Google-ArrivalTime: 2004-02-20 14:01:27 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail From: David@alterconsulting.net (David Alter) Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.windows Subject: Re: c++ and including ocidl.h build problem Date: 20 Feb 2004 14:01:27 -0800 Organization: http://groups.google.com Lines: 28 Message-ID: <e4af91cf.0402201401.a4b1b52@posting.google.com> References: <e4af91cf.0402192248.476671ee@posting.google.com> <mwron-4D943E.09511520022004@news.newsguy.com> NNTP-Posting-Host: 216.102.199.85 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1077314487 21993 127.0.0.1 (20 Feb 2004 22:01:27 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 20 Feb 2004 22:01:27 +0000 (UTC)