User forums > General (but related to Code::Blocks)
Compiling precompiled headers file with Code::Blocks
thomas:
--- Quote from: killerbot on August 24, 2007, 08:29:36 pm ---
--- Quote from: thomas on August 24, 2007, 04:16:52 pm ---
--- Quote from: killerbot on August 24, 2007, 11:22:31 am ---
--- Quote ---Wwolf is right insofar as we can indeed not do much about it (nothing at all, actually). Just ignore it, or use the compiler option to turn off attribute warnings (this won't affect any other warnings).
--- End quote ---
I think we should do that, what is the option ?
--- End quote ---
I think we should not do that. I makes building with 3.4.x impossible.
--- End quote ---
3.4.x fails to build then ?
--- End quote ---
-Wno-comment was added with gcc 4.1, so both the 3.4 and 4.0 series will fail with "unknown command line switch" if you add that to the project/makefile.
It's ok for someone to use the flag if he only wants use gcc 4.2 anyway... but I think we should not use it.
killerbot:
I'll see if I can do it with scripting ;-)
Biplab:
--- Quote from: killerbot on August 25, 2007, 01:53:39 pm ---I'll see if I can do it with scripting ;-)
--- End quote ---
There is a SDK function, CompilerMINGW::GetVersionString(). It'll return the version string of GCC (e.g., 4.1.2). You can use it somehow. :)
killerbot:
yes indeed, an when we know it's above 4.2 we add the little option to the compiler.
Just need to check with the big boss, if it is ok, to have a codeblocks.script next to our codeblocks.cbp ;-)
thomas:
Why an extra file? You could [[ ]] it as pre-build step for the first target.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version