🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac.programmer.codewarrior
Article #1480

Re: c++ and including ocidl.h build problem

#1480
From: MW Ron
Date: Fri, 20 Feb 2004 23:49
45 lines
2767 bytes
In article <e4af91cf.0402201401.a4b1b52@posting.google.com>,
 David@alterconsulting.net (David Alter) wrote:

>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.

The problem was you were using the precompiled header and not a prefix 
file.  There are two types of prpecompiled headers  one has  just .mch  
the other is ++.mch  and is precompiled as C++

Changing this fixed your target to build just fine.

Ron


>> 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
>>

-- 

Metrowerks, maker of CodeWarrior   -  "Software Starts Here"  
Ron Liechty - MWRon@metrowerks.com - <http://www.metrowerks.com>
Technical Details
Message-ID: <mwron-673C52.18493220022004@news.newsguy.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshub.sdsu.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn51feed!worldnet.att.net!129.250.175.17!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!mwron
References: <e4af91cf.0402192248.476671ee@posting.google.com> <mwron-4D943E.09511520022004@news.newsguy.com> <e4af91cf.0402201401.a4b1b52@posting.google.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 16:25:03 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshub.sdsu.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn51feed!worldnet.att.net!129.250.175.17!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!mwron
From: MW Ron <mwron@metrowerks.com>
Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.windows
Subject: Re: c++ and including ocidl.h build problem
Date: Fri, 20 Feb 2004 18:49:32 -0500
Organization: Metrowerks
Lines: 45
Message-ID: <mwron-673C52.18493220022004@news.newsguy.com>
References: <e4af91cf.0402192248.476671ee@posting.google.com> <mwron-4D943E.09511520022004@news.newsguy.com> <e4af91cf.0402201401.a4b1b52@posting.google.com>
NNTP-Posting-Host: p-498.newsdawg.com
User-Agent: MT-NewsWatcher/3.3b1 (PPC Mac OS X)
X-Face: )mY~XFHLw)UOW!W#[Ljvxq6Ja7(g'#F0-g*&puNxR8hEJkd@Oue/70^.)I78\
        (%a%&Id211u"l/t.llWo/M|?15XUlx9!IGkdWiEmcasiyg"k;Q9[~XuE+`t2"*n(>nmm
        @L/q,TjMd5+H{gASEPDR^$