Questions tagged [compiler-flags]

Parameters that may be passed to a compiler affecting how compilation is carried out. These can have a variety of effects on the paths searched for external dependencies, optimization level, how source code is interpreted, code checks that are performed and preprocessor directives.

Parameters that may be passed to a compiler affecting how compilation is carried out. These can have a variety of effects on the paths searched for external dependencies, optimization level, how source code is interpreted, code checks that are performed and preprocessor directives.

479 questions
0
votes
1 answer

Promoting integers to 8 bytes including those with explicit declaration using IBM xlf compiler

When I use gfortran the flag -finteger-4-integer-8 does the job. However, I'm looking for xlf's equivalent flag, -qintsize=8 is the equivalent of -fdefault-integer-8, but I haven't been able to find -finteger-4-integer-8's analog.
Caterina
  • 775
  • 9
  • 26
0
votes
1 answer

Mix build flags for several configurations in CMake

According to CMake documentation here, we can use the build type to specify our own build types, adding flags to our custom build depending on the CMAKE_BUILD_TYPE option. For example, if CMAKE_BUILD_TYPE == Profile, CMake will use…
jjcasmar
  • 1,387
  • 1
  • 18
  • 30
0
votes
2 answers

How to add flag variable based on source

I want to union two tables and add a flag column(1,0) indicating where they came from. Any help on how to perform this SQL?
0
votes
1 answer

How to set Interpreter flags when packaging

I want to set the -O flag, so that when the package will be build the code will be optimized. I use the setuptools for building the package and it whould be good to set the optimization flag here!
0
votes
0 answers

Remote debugging on window via GDBServer

Cannot remotely debug an application on a remote computer. The problem occurs when connecting the CodeLite IDE version 12.0.10 and GNU gdbserver (GDB) version 7.6.1. The CodeLite IDE runs on the local computer; GNU gdbserver runs on the remote…
0
votes
1 answer

Swift Package Manager - How to `Always Embed Swift Standard Libraries`?

We have CLI tool written in Swift for common usage (Android and iOS developers) on macOS. Android developers without Xcode installation get the following error: dyld: Library not loaded: @rpath/libswiftCore.dylib Referenced from:…
0
votes
1 answer

Lack of debugging information in Watcom debugger

Currently I am using Clion IDE plus latest version of Open Watcom v2 windows 32 bit compiler to develop some 16 bit MS-DOS application. The problem I have is I don't see all required debugging information when using watcom windows debugger…
BadFatRat
  • 1
  • 1
0
votes
0 answers

How can I compile CIL code that is Large Address Aware

I have compiled a c# application and dll for "Any CPU" and decompiled both afterwards with ildasm.exe. In the next step I assembled the data (.il and .res) file back into an application/dll file with ilasm.exe which worked fine, except for the Large…
null_ptr
  • 1
  • 1
0
votes
0 answers

Using build/compiler variables to pass in IP at buildtime, without creating build artifacts

This is not a duplicate question. Current "answers" to this problem use Objective-C, which allows for more expanded #Define statements. The existing suggested solutions result in an IP address directly changing within a file; a build artifact I was…
Quentin
  • 1
  • 4
0
votes
1 answer

CMake: suppress developer warnings

Description: I am using cmake-gui on Ubuntu to compile programs. I often encountered warning messages for developpers ending by: This warning is for project developers. Use -Wno-dev to suppress it. I tried to insert this -Wno-dev flag in the…
swiss_knight
  • 5,787
  • 8
  • 50
  • 92
0
votes
1 answer

net-snmp flags in CMAKE

Before anything, I just want to say I am very new to CMAKE, almost never used it but now forced to... I am trying to include snmp features in a previous project, using Net-SNMP library. But first, I wrote a minimalistic code just to test my…
PhoenixBlue
  • 967
  • 2
  • 9
  • 26
0
votes
0 answers

Relocation truncated to fir error with pgi and gcc compilers

I am getting an error with gcc(7.2.0) and also pgi(18.4) compilers. There is a scientific application (in fortran) that I am compiling that has some dependencies. These dependencies are compiled with -fPIC flag. While compiling the main application,…
0
votes
0 answers

What is the impact of unused libraries that are included using the -l flag?

I am compiling a C project with many source files. Not all of them need all the external libraries I'm using, e.g. math library (gcc flag -lm), but including it for all files results in a simpler makefile. What is the impact on…
Sparkler
  • 2,581
  • 1
  • 22
  • 41
0
votes
2 answers

Why is gcc compiler flag unknown?

Been trying to add this flag: -Wshadow=compatible-local (documentation) when compiling but it just keeps throwing this message: `error: unknown warning option '-Wshadow=compatible-local'; did you mean '-Wshadow- uncaptured-local'? …
AymenTM
  • 529
  • 2
  • 5
  • 17
0
votes
1 answer

GCC anonymous is uninitialised

I'm trying to create something similar to std::tuple, a sort of compile-time list using variadic templates and recursive inheritance as shown in the implementation below. My problem would be that although the implementation shown below works fine on…