News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Compiling CodeBlocks from source : Warnings displayed

Started by Scr3amer, January 04, 2016, 09:03:05 PM

Previous topic - Next topic

Scr3amer

Hello guys,

I finally managed to compile codeblocks from sources but each time I have several warnings. That's why I wanted to know when I can consider I have properly and successfully built the soft.
I am using GCC TDM 4.7.1 (shipped with C::B 13.12) and wX 3.0.2. And it was for SVN 10635 and 10636.

Here are some of the warnings I met (only for C::B and core plugins) :

\src\sdk\scripting\squirrel\sqcompiler.cpp|655|warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]| <- this one multiple times
\src\sdk\wxscintilla\src\ScintillaWX.cpp|628|warning: variable 'haveTextString' set but not used [-Wunused-but-set-variable]
\src\src\resources\resources.rc|137|warning: #warning Manifest: x86.manifest [-Wcpp]|

Thanks in advance for any help :D !

BlueHazzard

\src\sdk\scripting\squirrel\sqcompiler.cpp|655|warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]| <- this one multiple times
squirrel thing, not really related to c::b, as far as it works it is ok ;) (and it works obviously)
\src\sdk\wxscintilla\src\ScintillaWX.cpp|628|warning: variable 'haveTextString' set but not used [-Wunused-but-set-variable]
the warning says all... not really critical
\src\src\resources\resources.rc|137|warning: #warning Manifest: x86.manifest [-Wcpp]|
absolute no idea, but if it works i would not bother...

greetings

stahta01

Quote from: BlueHazzard on January 09, 2016, 12:43:17 PM
\src\src\resources\resources.rc|137|warning: #warning Manifest: x86.manifest [-Wcpp]|
absolute no idea, but if it works i would not bother...

I think the above warning is generated on purpose to confirm the Manifest matches the CPU wanted.
If you read the CB code and forum there was a time the wrong Manifest file was generated.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

MortenMacFly

Quote from: stahta01 on January 09, 2016, 03:01:42 PM
I think the above warning is generated on purpose to confirm the Manifest matches the CPU wanted.
That is certainly true. This is on purpose and nothing to worry about.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]