[fixed]Linux compilation error on 1.9 source code

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
umen
Posts: 54
Joined: Fri Aug 08, 2008 11:10 am

[fixed]Linux compilation error on 1.9 source code

Post by umen »

Im using Linux centos 6.7 64bit gcc version 4.4.7
executing make im getting :

Code: Select all

In file included from COpenGLCacheHandler.cpp:9:
COpenGLDriver.h:36: error: a class-key must be used when declaring a friend
COpenGLDriver.h:36: error: friend declaration does not name a class or function
COpenGLDriver.h:37: error: a class-key must be used when declaring a friend
COpenGLDriver.h:37: error: friend declaration does not name a class or function
make: *** [COpenGLCacheHandler.o] Error 1
 
This is not happening in version 1.8.3
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Linux compilation error on 1.9 source code

Post by CuteAlien »

Hm, that's strange. Doesn't it include the headers which declare those classes just before COpenGLDriver.h? I'll check in the evening when I'm on Linux. Guess it won't hurt to add some forward declarations, just wondering why this happens...
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Linux compilation error on 1.9 source code

Post by CuteAlien »

Ok, wasn't about forward declaration but about missing "class" keyword after friend keyword. But it seems both friends were unnecessary, so I took away all of COpenGLDriver's friends (poor COpenGLDriver...). I hope that doesn't break another compiler.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
umen
Posts: 54
Joined: Fri Aug 08, 2008 11:10 am

Re: [fixed]Linux compilation error on 1.9 source code

Post by umen »

Ok , great thanks .
i did performance test with Orho3d engine and Irrlicht examples are way faster i mean much faster ....
can you explain this ? they both using modern OpenGL .
Orho3d is based on SDL2.

also not related , how is the iOS version coming along ?
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: [fixed]Linux compilation error on 1.9 source code

Post by CuteAlien »

Did you compare with the same scene/models? But don't know that other engine (I guess you mean Urho3d, but also don't know that one).
Nadro is working currently on iOS. We're still discussing some parts, but it seems to be currently on top of his todo list.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply