Search found 448 matches

by YaronCT
Fri Aug 21, 2015 07:25
Forum: CEGUI Library Development Discussion
Topic: unused variables
Replies: 19
Views: 7623

unused variables

When there's an unused variable (e.g. parameter), the compiler usually gives a warning. In Qt, for instance, there's a macro "Q_UNUSED" that can be used to suppress this warning: Q_UNUSED(myVar); Which is defined something like: #define Q_UNUSED(var) (static_cast<void>(var)) Is there somet...
by YaronCT
Thu Jul 30, 2015 12:58
Forum: Help
Topic: [Solved] Running tests.
Replies: 5
Views: 2520

Re: Running tests.

Ok thanx.
by YaronCT
Wed Jul 29, 2015 15:24
Forum: Help
Topic: [Solved] Running tests.
Replies: 5
Views: 2520

Re: Running tests.

Thanx, I didn't know that's the command required to run the tests. However, now I get: Constructing a list of tests Done constructing a list of tests Checking test dependency graph... Checking test dependency graph end test 1 Start 1: CEGUITests 1: Test command: /home/yaronct/build/cegui/hg/bin/CEGU...
by YaronCT
Tue Jul 28, 2015 08:47
Forum: CEGUI Library Development Discussion
Topic: ABI Compatibility of identifiers that are not exposed
Replies: 10
Views: 4685

Re: ABI Compatibility of identifiers that are not exposed

Kulik, but in GCC, symbols **are** visible by default, unless the "-fvisibility=hidden" compilation flag or "#pragma GCC visibility push(hidden)" is put in the code. That means, users might already use some symbols that we didn't intend to make visible. Don't u think we should us...
by YaronCT
Sat Jul 25, 2015 13:03
Forum: CEGUI Library Development Discussion
Topic: ABI Compatibility of identifiers that are not exposed
Replies: 10
Views: 4685

Re: ABI Compatibility of identifiers that are not exposed

Are u sure about "protected"? A used might have inherited the class and used the protected method from there! I think it applies only to private members.
by YaronCT
Sat Jul 25, 2015 12:48
Forum: CEGUI Library Development Discussion
Topic: ABI Compatibility of identifiers that are not exposed
Replies: 10
Views: 4685

Re: ABI Compatibility of identifiers that are not exposed

No, by changing the prototype of a method of a class, I mean e.g. change its parameters. So, say, in the definition of the class "OpenGL3ShaderManager", change: void initialiseShaders(); to: void initialiseShaders(bool foo); And then, if a GCC user used the old prototype, ABI compatibility...
by YaronCT
Sat Jul 25, 2015 12:41
Forum: CEGUI Library Development Discussion
Topic: ABI Compatibility of identifiers that are not exposed
Replies: 10
Views: 4685

Re: ABI Compatibility of identifiers that are not exposed

Ok, but my question was not whether it's legal to expose the class, but whether it's legal to change the prototype of a method of the class (leaving the class unexposed). So, If try to read between your words, it's legal. I was just wondering because in MSVC u must use __declspec(dllexport) do expos...
by YaronCT
Mon Jul 20, 2015 19:07
Forum: Help
Topic: [Solved] Running tests.
Replies: 5
Views: 2520

[Solved] Running tests.

Hi, When I run the CEGUI tests ("make test") I get: Running tests... Test project /home/yaronct/build/cegui/0_8_4 Start 1: CEGUITests 1/1 Test #1: CEGUITests .......................***Failed 0.01 sec 0% tests passed, 1 tests failed out of 1 Total Test time (real) = 0.01 sec The following t...
by YaronCT
Mon Jul 20, 2015 12:24
Forum: CEGUI Library Development Discussion
Topic: ABI Compatibility of identifiers that are not exposed
Replies: 10
Views: 4685

ABI Compatibility of identifiers that are not exposed

Hi,

Is it allowed to change, for example, the prototype of a method in "OpenGL3ShaderManager", which is not defined with "OPENGL_GUIRENDERER_API" or something similar that indicates that it should be exposed? That is, if I want to maintain ABI compatibility.
by YaronCT
Sat Jun 20, 2015 08:35
Forum: Help
Topic: problems debugging CEGUI
Replies: 4
Views: 1670

Re: problems debugging CEGUI

I don't know in general, but from a single attempt I've now made to debug a function not in the renderer, it works. What's weird though is that when I get a crash in the OpenGL 3 renderer while in GDB, I can see its code. That also seems to suggests it's a GDB bug. I might ask in the GDB mailing lis...
by YaronCT
Fri Jun 19, 2015 14:46
Forum: Help
Topic: problems debugging CEGUI
Replies: 4
Views: 1670

Re: problems debugging CEGUI

I've done the same with Clang and its debugger (LLDB), and debugging works fine. Could it be a GDB bug?
by YaronCT
Fri Jun 19, 2015 12:44
Forum: Help
Topic: problems debugging CEGUI
Replies: 4
Views: 1670

problems debugging CEGUI

Hi, I'm sorry if this question isn't specific to CEGUI, but for some reason I'm unable to debug CEGUI code with gdb, and this is something I've not encountered before. For example, I put a breakpoint in CEGUI::OpenGL3ShaderManager::loadShader . When I hit that breakpoint, I get: Breakpoint 1, 0x0000...

Go to advanced search