Questions tagged [cflags]

CFLAGS are switches that can be passed to the C compiler while compiling software.

CFLAGS are switches that can be passed to the C compiler while compiling software. CFLAGS are normally used inside Makefiles to have the same set of flags for the compilation.

CFLAGS can also be provided from outside of the Makefile via environment variables.

75 questions
0
votes
0 answers

Trying to compile LinuxSamplers via g++

im quiet new to the compiling stuff. However, i tried to compile the LinuxSampler starting with libgig. I downloaded the Repositories, adjusted the "rules" (./config) file and so on, just as described there https://linuxsampler.org/debian.html .…
GHart
  • 1
  • 1
0
votes
1 answer

Trying to build test-launch.c for gstreamer but fails to build

I am trying to build test-launch.c on my ubuntu machine (i5) with this command: gcc -o test-launch test-launch.c `pkg-config --cflags --libs gstreamer-rtsp-server-1.0` but it fails to build. The error message I see is the…
takanoha
  • 183
  • 4
  • 17
0
votes
1 answer

Search and Replace CFLAGS in a target

I need to add -Werror to the already existing (Exported?) CFLAGS for a build. Right now I am just trying to extract the data CFLAGS holds. I am super new to Make and Makefiles but have to add some pre-existing build files. Say I have a target in a…
Onyxdragun
  • 117
  • 1
  • 3
  • 13
0
votes
1 answer

warning: arithmetic between different enumeration types (x and y) is deprecated How closed?

I just want to turn off the warning below. other warnings should remain open. Clang 11 warning: arithmetic between different enumeration types (x and y) is deprecated Makefile ? CFLAGS = ?
0
votes
1 answer

Passing CFLAGS to Makefile at a command line

I am trying to monitor coverage on a Makefile project. CFLAGS=" -fprofile-arcs -ftest-coverage -g" make test But the command above does not seem to work, producing the following: gcc -DHAVE_CONFIG_H -I. -I.. -I.. -g -O2 -MT test.o -MD -MP -MF…
zell
  • 9,830
  • 10
  • 62
  • 115
0
votes
1 answer

Converting from GCC to CMake

What's the CMake equivalent of: gcc filename.c -o filename $(pkg-config --libs --cflags mylib) I am interested on the $(pkg-config --libs --cflags mylib) part, since I already have code that compiles, and I just need to add the mylib library.
Michel Feinstein
  • 13,416
  • 16
  • 91
  • 173
0
votes
1 answer

How to disable -werror while using ESP32 and FreeRTOS

I'm trying to connect with Amazon FreeRTOS using ESP32 and I've got a problem with building this. I'm doing everything according to tutorial on Amazon website (for Windows). The error is cc1.exe: some warnings being treated as errors. I found…
MASTER OF CODE
  • 302
  • 3
  • 14
0
votes
0 answers

How can I pass False value to a boolean cflag in cpp?

I've declared a boolean flag DEFINE_bool(coolflag, true, "My cool flag."); and then want to run my binary with coolflag=false: ... --coolflag false but the value of the flag is still true: cout << FLAGS_coolflag << endl; // outputs 1 I tried…
Alex
  • 579
  • 1
  • 6
  • 14
0
votes
1 answer

internal error in override_version, at ../../gold/resolve.cc:61?

I am trying to compile qtbase recipe with CFLAGS and LDFLAGS in yocto-project. I have added the following lines in qtbase recipe. CFLAGS and CPPFLAGS are used to add instrumentation of code to find the code coverage. CFLAGS += "-fprofile-arcs…
Ajay.kundu
  • 195
  • 2
  • 10
0
votes
1 answer

Using rakefile to compile C files

I encounter a problem while compiling C files using rake. I am able to define my constant in the rakefile, and print out the value of this constant in my C file. This works fine, compiles, links and executes as expected, when the defined constant is…
Abel Tom
  • 145
  • 2
  • 8
0
votes
1 answer

Error on building Openembedded for Intel Quark

Trying to build Linux for Advantech UBC-221 that has Intel Quark processor. The system is Debian 9, running on VMware. Was able to build poky succefully before. Let me summarize what I was doing: mkdir quark cd quark git clone…
Gábor
  • 3
  • 2
0
votes
0 answers

Setting c++11 std for gcc in solaris 11

I am trying to install cmake on solaris machine by building its source code. In one of the steps we need to do "make" to build the source code. When I do a make I am getting below error /json_reader.cpp:35:18: error: ‘snprintf’ is not a member of…
Ashwini J
  • 61
  • 1
0
votes
1 answer

undefined reference to error only for certain functions

I have a library and a C interface built for it. My program compiles just fine with versionString() but not with loadConfig(). How is that possible? walker.h : #ifndef WFE_C_H #define WFE_C_H #ifdef __cplusplus extern "C" { #endif const char*…
thylong
  • 3
  • 2
0
votes
1 answer

Makefile CFLAGS and SRCS-y are ignored in function form

I have some trouble with making Makefile. This is a part of Makefile. dirs := fwd common bp bp_manager $(XRTE_HASH) VPATH_ = $(foreach dir,$(dirs),$(SRCDIR)/$(dir)) INC_ = $(foreach dir,$(dirs),$(wildcard $(dir)/*.h)) CFLAGS_ = $(foreach…
0
votes
1 answer

Setting up ofxPd example on Android

I'm trying to run ofxPd example on Android devices using Android Studio on OSX. First of all, I could successfully compile and run of_v0.9.8_android_release/examples/android/androidEmptyExample on Android Studio. But I wasn't sure how to properly…
Zack Lee
  • 2,784
  • 6
  • 35
  • 77