Problems Compiling - unnamed structs

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Pallas
Posts: 3
Joined: Mon Apr 12, 2004 2:14 am

Problems Compiling - unnamed structs

Post by Pallas »

When I try to compile Irrlicht (or any example) under Debian/Linux using make (g++), I get a series of errors like this:

include/SMaterial.h:188: anonymous class type not used to declare any objects
include/SMaterial.h:229: anonymous class type not used to declare any objects
include/SMaterial.h: In method `irr::video::SMaterial::SMaterial()':
include/SMaterial.h:148: class `irr::video::SMaterial' does not have any field named `Texture1'
include/SMaterial.h:148: class `irr::video::SMaterial' does not have any field named `Texture2'
...

I know that the problem is because Irrlicht uses unnamed structs in its unions, but I don't know the solution to this problem. (I checked through the first 10 pages of the forums, and didn't see one either).

If it's of use, `g++ -v` prints:
"gcc version 2.95.4 20011002 (Debian prerelease)"
schick
Posts: 230
Joined: Tue Oct 07, 2003 3:55 pm
Location: Germany
Contact:

Post by schick »

upgrade gcc to the latest
Please send me an e-mail instead of a private message.
Post Reply