Page 1 of 1

Compiling with warnings

PostPosted: 21 Mar 2015, 11:57
by dimproject
OS: Windows
IDE: CodeBlocks 13.12
Compiler: MinGW TDM-GCC 4.7.1

I got warnings. Build log below.
Build_log.txt
(98.59 KiB) Downloaded 861 times


Switching Update method is making game crash (I thinking need game reload for this).

Re: Compiling with warnings

PostPosted: 21 Mar 2015, 13:28
by Bertram
Hey dimproject,

The core warning is this line:
C:\ValyriaTear\src\common\common_bindings.cpp:27:29: warning: src/utils/utils_pch.h.gch: not compatible with this GCC version [enabled by default]


the utils_pch.h is precompiled as utils_pch.h.gch and becomes what is called a precompiled header.

GCC is simply warning you that the precompiled header file has been created with a different gcc version than the one being used to compile Valyria and thus cannot use it.
A 'make clean' can get rid you of this, or 'rm src/utils/utils_pch.h.gch' to be more precise.

Switching Update method is making game crash (I thinking need game reload for this).

Interesting, I wish you could run the game with a debugger and send me a backtrace. ;)
Can you run the beast using the debug run command (The red triangle on C::B Gui)?

Best regards,

Re: Compiling with warnings

PostPosted: 22 Mar 2015, 09:49
by dimproject
Here is Debugger, settings.lua.
Debugger_settings.zip
(1.88 KiB) Downloaded 847 times

When I was switching Update method from Performance to Gentle,
game screen froze, CPU load for game - 0%, game music is playing.

Re: Compiling with warnings

PostPosted: 23 Mar 2015, 11:52
by Bertram
Thanks for the settings (where I've noticed a typo of my own, btw ;]) and the debug trace. Yet, since it seems you're using the Release binary mode, the binary has no debug symbols left and is stripped, making the back-trace unusable unfortunately.

Would you mind to have a go at compiling it in debug mode?

Best regards,

Re: Compiling with warnings

PostPosted: 24 Mar 2015, 09:05
by dimproject
No problem!
Here is Debugger from Debug version
Debugger.txt
(2.94 KiB) Downloaded 837 times

Re: Compiling with warnings

PostPosted: 27 Mar 2015, 11:37
by Bertram
I'll try a few things and tell you back when you can also test a potential fix. :)

Re: Compiling with warnings

PostPosted: 02 Nov 2016, 10:42
by mollylayne
Thanks for the information..