J
jacob navia
Keith said:Keith Thompson said:[...]jacob navia said:When my compiler doesn't emit an error when it sees // comments
using the undocumented ansic89 flag a posting will be done
by the regs indicating a "serious bug".
jacob, do you actually *read* this newsgroup?
A single troll calling himself "Tea Pot" has repeatedly complained
about this. The "regs" consistently reply that, since the ansic89
flag is not documented, and since there's no claim that lcc-win
supports C89/C90, it's not a bug, and that even if it were this is
not the place to complain about it.
On this particular point, we have consistently defended you. I,
for one, would appreciate it if you'd pay a bit more attention
and refrain from making unfounded accusations.
jacob, somehow I'm not surprised that you chose to ignore this.
Disappointed, but not surprised.
I did not want to write this since I do not want to start
denigrating gcc. But you ASKED FOR IT
Sample code:
-------------------------------------------------------
#ifndef __CREATETYPELIB_H_
#define __CREATETYPELIB_H_
#include <oaidl.h>
#define MAX_IDENTIFIERNAME 128
#define MAX_PARAMS 32
typedef int TypeInfoID;
typedef struct CreateTypeInfo
{
ICreateTypeInfo *c;
int nfuncs;
GUID guid;
TYPEKIND kind;
} CreateTypeInfo;
#endif
----------------------------------------------------------
When compiling with -c neither MSVC nor lcc give any output
Output of mingw: (message continues afterwards)
In file included from
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/ole2.h:11,
from
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/windows.h:114,
from
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oaidl.h:8,
from vv.c:4:
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:172:
error: syntax error before "DISPID"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:174:
error: syntax error before "cc"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:178:
error: syntax error before '}' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:180:
error: syntax error before "METHODDATA"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:182:
error: syntax error before '}' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:213:
error: syntax error before "SAFEARRAY"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:214:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:215:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:215:
error: syntax error before "SAFEARRAYBOUND"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:216:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:217:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:218:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:219:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:220:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:221:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:222:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:223:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:224:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:225:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:226:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:227:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:228:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:229:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:230:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:231:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:232:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:233:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:234:
error: syntax error before "SAFEARRAY"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:235:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:236:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:237:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:238:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:239:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:240:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:241:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:242:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:243:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:244:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:245:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:253:
error: syntax error before "LCID"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:262:
error: syntax error before "LCID"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:271:
error: syntax error before "LCID"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:280:
error: syntax error before "LCID"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:289:
error: syntax error before "LCID"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:299:
error: syntax error before "LCID"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:308:
error: syntax error before "LCID"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:317:
error: syntax error before "LCID"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:327:
error: syntax error before "LCID"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:329:
error: syntax error before "LCID"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:330:
error: syntax error before "LCID"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:331:
error: syntax error before "LPTYPELIB"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:332:
error: syntax error before "LPTYPELIB"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:333:
error: syntax error before "LPTYPELIB"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:335:
error: syntax error before "OLECHAR"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:336:
error: syntax error before "SYSKIND"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:337:
error: syntax error before "const"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:338:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:339:
error: syntax error before "OLECHAR"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:340:
error: syntax error before "LPTYPEINFO"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:341:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:342:
error: syntax error before "LPTYPEINFO"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:346:
error: syntax error before "LPERRORINFO"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:347:
error: syntax error before "LPERRORINFO"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:348:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:350:
error: syntax error before "SAFEARRAY"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:351:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:353:
error: syntax error before "VARIANT"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:354:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:355:
error: syntax error before "IRecordInfo"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:376:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:392:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:408:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:425:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:441:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:457:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:473:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:490:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:506:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:522:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:538:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:554:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:570:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:587:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:603:
error: syntax error before '*' token
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:649:
error: syntax error before "int"
f:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/oleauto.h:650:
error: syntax error before "LCID"
vv.c:13: error: syntax error before "ICreateTypeInfo"
vv.c:13: warning: no semicolon at end of struct or union
vv.c:17: error: syntax error before '}' token
vv.c:17: warning: data definition has no type or storage class
Satisfied?
It chockes at its own includes!
Most examples in MSDN will not compile
Satisfied now?