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

Specifying compiler flags for C sources

I'm trying to find out how to specify flags for C sources in qmake project. I've tested the three options: QMAKE_CFLAGS QMAKE_CPPFLAGS QMAKE_CXXFLAGS QMAKE_CFLAGS is what I need. Both CPPFLAGS and CXXFLAGS are only applied to C++ sources. What I'm…
Violet Giraffe
  • 32,368
  • 48
  • 194
  • 335
0
votes
0 answers

Reducing the size of .so library

I have given a task to optimize the performance of a program (Both ROM and RAM size). I am the idea click to me is to use -Os inside of -O2 to reduce the .so size. Does this will effect the performance of my program? I am using strip the library…
dead programmer
  • 4,223
  • 9
  • 46
  • 77
0
votes
1 answer

Adding flag to cocoapods lib

In my project, I include the JIRAConnect pod. However, the there are a lot of build-warnings in this project which I am not interested of at the moment. For now, after each pod installation/update I need to open the Pods project and add the -w flag…
Paul Peelen
  • 10,073
  • 15
  • 85
  • 168
0
votes
0 answers

enabling flags on an apt-get installed package (libnetcdf-dev)

Hopefully this is a really easy question, but I am having trouble working it out - I am installing a program which requires netcdf version 4 or later with DAP enabled. I already have libnetcdf-dev installed via apt-get. How can I check whether DAP…
BexERoss
  • 5
  • 4
0
votes
1 answer

Which gcc O2 flag may cause failure in fp calculation?

I compiled paranoia floating point test suit on a pc386 system using GCC O2 level of optimization and got several failures but then compiled it without optimization with the same GCC and got correct result. I read about the flags which are enabled…
0
votes
1 answer

#pragma interrupt for GCC

I'm new to embedded programming so I am not sure on the syntax. I need to make this available for the GCC toolchain. My driver was compiled using a different toolchain. I frankly haven't used compiler flags much at all so I'm a bit at a loss. This…
Blackdragon1400
  • 413
  • 4
  • 18
0
votes
2 answers

Visual Studio Express 2012 for Web TypeScript EcmaScript version

Visual Studio Express 2012 for Web TypeScript EcmaScript version I simply want to change the version of EcmaScript from ES3 to ES5 in my TypeScript project. Is there a setting in a dropdown somewhere? The purpose of this is so that I may use the…
0
votes
1 answer

'make' error: setting paths for compiling

i got a problem when compiling the netCDF library (parallel version). In particular the problem is related to the different paths I guess. The problem is I'm not the admin of the machinge. However, teh admin himselfe has already installed an old…
Stephan
  • 53
  • 1
  • 4
0
votes
1 answer

Changes in Orbix Idl compiler flags from 3.3 to 6.3

I am quite new to the IDL compiler and am trying to port a decade old code from 3.3 to 6.3 (C++) and I see that the old compiler flags like -A -B -N are no longer valid in the new compiler. Can some one point me to a link which lists or maps the…
user1663533
  • 95
  • 2
  • 10
0
votes
1 answer

Xcode: Build architecture specific per file compiler build settings

in my iPhone project I am using some inline asm, which is excluded if the target architecture is the device and not the simulator. Since some of the inline asm code is arm only and not thumb I need to specify the c flag -marm when compiling it for…
Kim
  • 1
  • 2
0
votes
1 answer

makefile - separate folders

I want to compile my source files twice with different flags each time. Besides that I need to have these executables which I'll acquire after the compilation in different directories (so I want 'make' to create two folders and put into every folder…
Hubert Siwkin
  • 385
  • 3
  • 16
0
votes
1 answer

error : identifiers “atomicCAS” & "atomicExch" are undefined under visual studio 2012 & cuda 5

Similar to the linked question I am confronted with the "atomicCAS" & "atomicExch" identifiers not found errors. I searched online for solutions but still cannot solve my problem. I also changed Code Generation to compute_20, sm_20 in project…
0
votes
1 answer

Flag to compile a specific file

I'm using on xcode a configuration to compile source as Objective-C++, but I added a Library and I want compile it as Objective-C, have a way to do it? my config: //:configuration = Debug CLANG_CXX_LIBRARY = libstdc++ //:configuration =…
ademar111190
  • 14,215
  • 14
  • 85
  • 114
0
votes
1 answer

CMAKE package config and flag setup

I'm quit a noob at this area, but I need to include in my cmake file (for a ROS node): gcc main.cpp `pkg-config --cflags opencv` -o test `pkg-config cvblob opencv --libs` I want to use the cvblob and opencv lib in a ROS node.
Elod
  • 499
  • 9
  • 25
0
votes
3 answers

Creating Processes in Linux using fork() Function

I've been trying to compile a piece of C code which should create processes using the fork() function.` #include #include main() { int n=15, z=20, count=3, mult=1; while(count<3) { if(z!=0) { …
1 2 3
31
32