compiler-options Questions
1
Solved
I've had a search around and can find a few examples of using Visual Studio menus to suppress creation of PDB files. I need to do this for a project I'm building, however, this requires using the V...
Halsy asked 14/8, 2012 at 1:57
2
Solved
I read the documentation in MSDN, but in the end I didn't get a clear idea what is the practical difference between them, exactly. Both seem to require stdafx.h to be added at the top of every *.cp...
Telmatelo asked 30/7, 2012 at 13:51
6
Solved
The GCC 4.1.2 documentation has this to say about the -pipe option:
-pipe
Use pipes rather than temporary files for communication between the various stages of compilation. This fails to work...
Permatron asked 3/10, 2009 at 5:55
3
Solved
What's the difference between the /Ot flag ("favor fast code") and the /O2 flag ("maximize speed")?
(Ditto with /Os and /O1.)
Lode asked 15/5, 2011 at 8:39
1
Solved
Recently I stumbled over code such as this:
void foo(const Bar* b) {
...
takes_nonconst_param_fn((Bar*)b);
...
Obviously, the developer didn't know what he was doing, but if the compiler hadn...
Wyatan asked 13/4, 2011 at 14:21
3
Solved
I have saw the compiler option GNU99 and C99. What's the difference of them? Any detail documentation? (Clang, Xcode, Mac OS X)
Addressee asked 15/3, 2011 at 14:52
1
Solved
I'm having troubles with <stdint.h> when using -std=c++0x in GCC 4.4.3 (for Android):
// using -std=c++0x
#include <stdint.h>
uint64_t value; // error: 'uint64_t' does not name a type
...
Gaunt asked 27/2, 2011 at 20:30
2
Solved
Does C++0x mode in VC++ 2010 has an off switch? I am working on a project that supposed to compile on non 0x compilers, and therefore I want to compile against the current standard. (Even if non of...
Efta asked 21/8, 2010 at 2:36
2
Solved
With g++ with -g option, I can use gdb for debugging purposes.
What's the equivalent to this option with Visual Studio 2010 cl.exe compiler?
This page has different libraries (debug/release) for ...
Srinagar asked 11/1, 2011 at 16:11
1
Solved
After I disabled /Gm and enabled /MP, the build time on VS2010 is reduced significantly.
I am confused as to why /Gm is the default. I think /MP is better.
(If /Gm is enabled, /MP is not activate...
Hendiadys asked 3/1, 2011 at 5:43
2
Solved
I have the construct:
{$ifopt FINITEFLOAT ON}
{$message 'FINITEFLOAT option ON' }
{$else }
{$message 'FINITEFLOAT option OFF' }
{$endif }
in my source and it won't compile! It's got to be some...
Cobb asked 31/8, 2010 at 21:23
2
Solved
Is is possible to put something at the top of the C source file, like
// GCC_OPTIONS=-g,-Wall
that will add those options automatically to gcc every time you compile this file?
Plymouth asked 17/9, 2010 at 0:25
1
Solved
Does GCC have an equivalent compiler switch to VC's floating point model switch (/fp)?
In particular, my application benefits from compiling with /fp:fast and precision is not a big deal, how shou...
Spleeny asked 15/7, 2010 at 14:39
1
Solved
I need to set additional options for C compiler, e.g. add flag to turn all warnings ON, depending on the type of the compiler. E.g. for MSVC I should use
env.Append(CPPFLAGS = "/Wall")
but for m...
Koonce asked 25/12, 2009 at 13:25
4
Solved
I've got some big C programs, and I would like to know when I'm compiling this program, which header files are actually included...
The simplest solution would be to print the preprocessed code an...
Naara asked 26/6, 2009 at 13:39
9
Solved
I understand pointers and the rare need to use them in C# code. My question is: what is the reasoning behind having to explicitly state "unsafe" in a block of code. Additionally, why must a compile...
Gingivitis asked 3/3, 2009 at 16:37
© 2022 - 2024 — McMap. All rights reserved.