Compiling with warnings

Compiling with warnings

Postby dimproject » 21 Mar 2015, 11:57

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 855 times


Switching Update method is making game crash (I thinking need game reload for this).
dimproject
 
Posts: 212
Joined: 18 Jul 2013, 13:51

Re: Compiling with warnings

Postby Bertram » 21 Mar 2015, 13:28

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,
User avatar
Bertram
VT Moderator
 
Posts: 1652
Joined: 09 Nov 2012, 12:26

Re: Compiling with warnings

Postby dimproject » 22 Mar 2015, 09:49

Here is Debugger, settings.lua.
Debugger_settings.zip
(1.88 KiB) Downloaded 843 times

When I was switching Update method from Performance to Gentle,
game screen froze, CPU load for game - 0%, game music is playing.
dimproject
 
Posts: 212
Joined: 18 Jul 2013, 13:51

Re: Compiling with warnings

Postby Bertram » 23 Mar 2015, 11:52

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,
User avatar
Bertram
VT Moderator
 
Posts: 1652
Joined: 09 Nov 2012, 12:26

Re: Compiling with warnings

Postby dimproject » 24 Mar 2015, 09:05

No problem!
Here is Debugger from Debug version
Debugger.txt
(2.94 KiB) Downloaded 832 times
dimproject
 
Posts: 212
Joined: 18 Jul 2013, 13:51

Re: Compiling with warnings

Postby Bertram » 27 Mar 2015, 11:37

I'll try a few things and tell you back when you can also test a potential fix. :)
User avatar
Bertram
VT Moderator
 
Posts: 1652
Joined: 09 Nov 2012, 12:26

Re: Compiling with warnings

Postby mollylayne » 02 Nov 2016, 10:42

Thanks for the information..
mollylayne
 
Posts: 1
Joined: 02 Nov 2016, 10:41

Who is online

Users browsing this forum: Majestic-12 [Bot] and 1 guest

cron