blob: 04980da8ed4b1f1214e76e62205449f2aa18f842 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Nel] gcc and non-ANSI</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:zerodeux%40free.fr">
<LINK REL="Previous" HREF="000154.html">
<LINK REL="Next" HREF="000150.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Nel] gcc and non-ANSI</H1>
<B>Vincent Caron</B>
<A HREF="mailto:zerodeux%40free.fr"
TITLE="[Nel] gcc and non-ANSI">zerodeux@free.fr</A><BR>
<I>Tue, 23 Jan 2001 14:19:00 +0100</I>
<P><UL>
<LI> Previous message: <A HREF="000154.html">[Nel] Pb with glx version</A></li>
<LI> Next message: <A HREF="000150.html">[Nel] gcc and non-ANSI</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#149">[ date ]</a>
<a href="thread.html#149">[ thread ]</a>
<a href="subject.html#149">[ subject ]</a>
<a href="author.html#149">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>I'm using gcc/g++ 2.95.3, and it seems that it doesn't like anonymous structures
(see gcc output below). I read that it's definitively not a standard feature,
and was orginally a MS VC++ extension, that was more or less adopted by others.
Seems that the gcc guy didn't approved it, but I didn't checked in depth. I
guess others are using the egcs c++ (1.1.2) frontend ?
I personnaly don't approve being able to acces a member without naming the
structure ...
In file included from driver_opengl.h:43,
from driver_opengl.cpp:45:
../../../../include/nel/3d/material.h:264: anonymous class type not used to
declare any objects
../../../../include/nel/3d/material.h: In method `void
NL3D::CMaterial::CTexEnv::setDefault()':
../../../../include/nel/3d/material.h:273: `union
NL3D::CMaterial::CTexEnv::{anonymous}' has no member named `OpRGB'
[...]
</pre>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="000154.html">[Nel] Pb with glx version</A></li>
<LI> Next message: <A HREF="000150.html">[Nel] gcc and non-ANSI</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#149">[ date ]</a>
<a href="thread.html#149">[ thread ]</a>
<a href="subject.html#149">[ subject ]</a>
<a href="author.html#149">[ author ]</a>
</LI>
</UL>
</body></html>
|