Questions tagged [compiler-options]

Compiler-options are parameters that are being passed to the compiler and that affect the compilation process or its resulting product.

Modern compilers have a large set of options that can be used to somehow change the way the code is compiled. Usually those options are passed as command-line flags.

Example for Java:

javac -target 1.5 -bootclasspath jdk1.5.0\lib\rt.jar \ -extdirs "" OldCode.java

More information about particular options can be found on compiler vendor's websites, to name a few:

244 questions
0
votes
1 answer

Runtime library (static library) for Release configuration

I've looked online and kind of get the idea, but wanted to ask just to be sure. I converted a native c++ wrapper to a c++/CLI project, in order to be "seen" by VB.NET My converted project has a dependency on a fortran static library. In Debug…
ryrich
  • 2,164
  • 16
  • 24
0
votes
1 answer

How do I verify that compiler options have been set correctly in msvc 2010 c++ project at compile time?

I have been playing around with PDCurses and have been having a few problems. Eventually I landed here which had a solution to my problem. Basically my PDCurses project was compiled with the UNICODE CHARACTER set. As a result the block character…
EvilTeach
  • 28,120
  • 21
  • 85
  • 141
0
votes
1 answer

VS2005 immediately runs my older code when an error occurs

For years, I had this behavior when writing VB.NET code with VS2005: If my code contains a syntax error, when I hit F5, a popup would ask something like "do you want to stop... or run a previously compiled version of this code?" (I would…
0
votes
2 answers

Do all gcc versions support gcc's @file option?

As far as I remember some older gcc versions don't support the @file option. I am not very sure. Could someone give any pointers related to this? For reference @file Read command-line options from file. The options read are inserted in…
Prasoon Saurav
  • 91,295
  • 49
  • 239
  • 345
0
votes
1 answer

Do I need the /GS compiler switch in VS2012?

After migrating our software from VS2005 to VS2012 I get the following error error LNK2019: unresolved external symbol ___report_rangecheckfailure referenced in function _main which is caused by using /GS option. In VS2012 there is an extended…
alex555
  • 1,676
  • 4
  • 27
  • 45
0
votes
1 answer

Is it possible to get a FORTRAN DLL to load at a random address each time?

I have been searching but have gotten no luck with finding a supposed compiler flag or something of the sorts that would allow me to build my FORTRAN DLL (using Intel Visual Fortran Composer XE 2013 compiler) in order for it to load with a random…
user1496542
  • 539
  • 2
  • 6
  • 14
0
votes
2 answers

Define for specific files

Can you please help me with following problem? I have a file log.cpp in which is included by different files in the project. I need to declare define in one of those files, which has to affect log.cpp, without actual change in log.cpp or log.h. How…
unresolved_external
  • 1,930
  • 5
  • 30
  • 65
0
votes
2 answers

How to change Compiler Option in Visual Studio 10?

I tried to run my application and got this problem: Could not load file or assembly 'Interop.ComUtilitiesLib' After googling around, I found a way to fix that issue by changing the compiler option. However, I really don't know how to change the…
Toby D
  • 1,465
  • 1
  • 19
  • 31
0
votes
1 answer

What do these HP-UX PA-RISC aCC compiler options mean?

I'm checking a 7 years old C/C++ system's Makefile. It was compiled by HP aCC, and it's running on HP-UX PA-RISC. I found many cflags descriptions here: http://h21007.www2.hp.com/portal/download/files/unprot/aCxx/Online_Help/options.htm , but these…
Leonardo Alt
  • 325
  • 3
  • 9
0
votes
2 answers

g++ deriving from class with template parameter

consider the following code: template class Base { public: void doSomething(){} }; template class Derived : public Base { public: void doMore() { doSomething(); //Affected line } }; In the line commented…
Nathan
  • 7,099
  • 14
  • 61
  • 125
0
votes
2 answers

What's the meaning of the compile options /DPROFILE and /UPROFILE in Microsoft Visual Studio?

There is the legacy native c++ project. In the Command Line Property Pages, the /DPROFILE is added as the additional option. I want to remove it. But I don't know if it is safe. I searched the everywhere. Unfortunately I didn't find the explanation…
Jeffrey
  • 4,436
  • 9
  • 38
  • 54
-1
votes
0 answers

Advice on gcc -march options

gcc's default value for -march is very conservative. It generates code to run on even prehistoric CPUs. To do this, it avoids many optimizations. For example, I think it only enables SSE2, even though SSE4 is something like 15 years old. At the…
Underhill
  • 408
  • 2
  • 13
-1
votes
1 answer

Qt Creator uses only 50% CPU on Build

Win 10 Professional x64 Qt 5.15.5 msvc2019 Qt Creator 9.0.2 clang version 12.0.0 Target: x86_64-pc-windows-msvc Thread model: posix CPU usage is about 50% during large project build after change processor from Core i5-7400 to core…
Vladimir Bershov
  • 2,701
  • 2
  • 21
  • 51
-1
votes
1 answer

gfortran specify source file option

In gcc we have -x option that use to specify how to treat source file. For example suppose we have a csourcecode file without any extension like .c. In gcc simply using -x c before express csourcecode force compiler to use it as valid c source…
EsmaeelE
  • 2,331
  • 6
  • 22
  • 31
-1
votes
1 answer

Is there a C++ tool which can convert template classes to actual classes if template parameter is given?

Suppose I have a template class like template class Foo{ T a; auto baz(){ return 4.2f; } }; int main(){ Foo bar; return 0; } Is there a tool which can convert this code to actual class and give output as…
coder3101
  • 3,920
  • 3
  • 24
  • 28
1 2 3
16
17