compiler-options Questions
1
Solved
This question is related to Instruct Cmake to use CXX and CXXFLAGS when driving link? In the former question, we are trying to instruct CMake to use CXXFLAGS when it invokes the linker.
add_compil...
Immobility asked 15/9, 2016 at 0:20
1
Solved
I have a program which works only when compiled with a specific version of gcc, and using some optimization (-O1 or higher, but not -O0).
This program is incorrect in the C sense, but nevertheless...
Firooc asked 20/6, 2016 at 6:11
1
Solved
For example, I wanted to create the annotation @Out to target parameters. Then I would somehow use the compiler to check if the parameter value is set before the function returns. Is this possible?...
Overprize asked 11/4, 2016 at 0:41
0
In a certain compilation I need to play around with the option -ftemplate-depth=N that specifies the maximum template recursion.
Is it possible to access the value of the maximum template depth fr...
Ancylostomiasis asked 25/3, 2016 at 20:22
1
It seems Eclipse allows user to "see the expansion Step-by-Step" by pressing F2.
I like this awesome feature. But can I do the same thing with just gcc or clang (or any tool)?
-E option makes all...
Duvalier asked 18/2, 2016 at 3:31
1
gcc -dumpmachine is almost perfect, but it doesn't respect flags that affect the target. On the other hand, clang does:
$ gcc -dumpmachine
x86_64-unknown-linux-gnu
$ gcc -dumpmachine -m32
x86_64-u...
Berhley asked 13/2, 2015 at 17:45
1
Solved
Given a Rust program, which compiles correctly, can I get the compiler to tell me what the elided lifetimes were inferred to be?
Waldheim asked 10/1, 2016 at 10:59
3
Solved
I have NetBeans 6.9 installed and working fine on Ubuntu Linux 11.10. My goal is to set compiler options like -Wall and -std=c99 to be used by default. Currently, I have to right click on my projec...
Rife asked 24/10, 2011 at 23:5
2
Solved
I have learnt from this recent answer that gcc and clang include the source filename somewhere in the binary as metadata, even when debugging is not enabled.
I can't really understand why this sho...
Hedgerow asked 5/9, 2015 at 12:41
2
Under Windows, I have an environment variable that contains a Windows-style path. I'd like to build that path into my program and print it out. So if my path is c:\top, I pass it into the compiler ...
Charpentier asked 2/7, 2015 at 20:27
2
Solved
Microsoft's C++ compiler (cl.exe, as included with Visual Studio) offers several optimization switches. The difference between most of them seems self-explanatory, but it's not clear to me what the...
Mesocratic asked 21/2, 2011 at 7:25
1
I always compile with -Wall -Wextra -Werror.
However, many times as I do quick compile tests I need to ignore the -Wunused suite of errors. For various reasons, I want to see them as warnings and n...
Computerize asked 2/2, 2015 at 13:7
1
Solved
I am working on a project that has a number of modules that I'd like to apply access control constraints to. I'd also like to have my project contain additional documentation on the type signatures...
Leclair asked 17/6, 2014 at 18:13
1
Solved
At the shell command prompt, if I type in javac -help, it tells me that the -implicit option specifies "... whether or not to generate class files for implicitly referenced files". There are two op...
Vermiculation asked 7/5, 2014 at 14:42
2
My problems of using Google protocol buffers has two parts, one is about compiler options, another is cross compiling. The build machine is a Power6, 64bit; host machine is a PowerPC450, 32bit. Gcc...
Arvad asked 27/12, 2011 at 17:58
3
Solved
I have a problem interpreting gcc (4.8.2) warnings & errors. More precisely, it's difficult to tell where one problem ends and another one starts. I have console-only access to the build machin...
Extent asked 20/2, 2014 at 11:1
1
Is there a compiler option for javac to compile without notes?
I know of:
-nowarn : to not display warnings
-g:none : to generate no debugging info
Notes are still generated with both of th...
Gentlefolk asked 5/10, 2013 at 12:19
1
Solved
Can I specify the stack size with clang++? I can't find any compiler options that would allow me to do so. I'm using OS X.
Note: This question specifically refers to Clang, not the GCC compiler.
Trimorphism asked 20/9, 2013 at 5:25
1
Solved
I'm playing with fdump-class-hierarchy compiler option but I don't know how I can understand the output. What does the "size", "align", "base size" and "base align" mean, and how these are counted?...
Vickers asked 23/7, 2013 at 18:47
4
Solved
I'm possibly just blind, but is there a command line to specify conditional compilation symbols in MSBUILD?
I currently have this Line in my buildscript:
SET MSBUILD=C:\WINDOWS\Microsoft.NET\Fram...
Crandale asked 26/1, 2009 at 14:38
2
Solved
In a component I am writing, I want to include automatic detection of registered image formats, but it is a solution that only works if the Use Debug DCU's compiler option is disabled.
What I real...
Nievesniflheim asked 3/2, 2013 at 17:5
5
I have an application installed on my computer. How do I find out if it was compiled in DEBUG mode or not?
I've tried to use .NET Reflector, but it does not show anything specific. Here is what I ...
Maintop asked 11/10, 2008 at 20:47
1
Solved
I need to set the language_in option on the Closure compiler to prevent the IE8 parse error:
ERROR - Parse error. IE8 (and below) will parse trailing commas in array and object literals incorrect...
Coriolanus asked 6/11, 2012 at 23:58
2
Solved
Basically, I'm trying to understand the difference between the "Break in Class Module" and "Break on Unhandled Errors" that appear in the Visual Basic 6.0 IDE under the following path:
Tools -->...
Gemot asked 2/10, 2012 at 8:45
1
Solved
Have a look at this piece of C++ code:
class Foo
{
int a;
public: Foo(int b): a(a) {}
};
Obviously, the developer meant to initialize a with b rather than a itself, and this is a pretty hard ...
Aid asked 19/8, 2012 at 11:15
© 2022 - 2024 — McMap. All rights reserved.