Questions tagged [cc]

cc is a common name for a C compiler executable or driver. It is the default for the $(CC) make variable. For email CC fields, please use [carbon-copy]. For Adobe CC, use [creative-cloud].

290 questions
31
votes
4 answers

What does CC?= in a Makefile mean?

I have a Makefile for a C program that has the declaration CC?=gcc Changing it to CC?=g++ does NOT make it compile with g++. Changing it to CC=g++ DOES make it use g++. So I wonder what the ?= operator does? My guess is that it looks at a…
inquam
  • 12,664
  • 15
  • 61
  • 101
15
votes
4 answers

Why am I getting this error: "data definition has no type or storage class"?

#include #include struct NODE { char* name; int val; struct NODE* next; }; typedef struct NODE Node; Node *head, *tail; head = (Node*) malloc( sizeof( Node ) ); //line 21 And I compiling like this: cc -g -c -o…
Daivid
  • 627
  • 3
  • 12
  • 22
12
votes
2 answers

Valgrind macOs and error Syscall param msg->desc.port.name points to uninitialised byte(s)

I tried to run valgrind 3.13 and 3.14 (on macOs 10.12.6) in very simple project but I got strange error who I never got in my linux before. Very simple C program main.c: int main() { return (0); } Compilation with cc: $> cc main.c Run my…
Sacha Ifrah
  • 133
  • 1
  • 8
11
votes
1 answer

Quick way to override -Werror flag?

If cc configuration is set to use -Werror is there a way to override -Werror flag from the terminal when using make?
Nickolay Kondratyev
  • 4,959
  • 4
  • 25
  • 43
8
votes
2 answers

Undefined reference to 'pow' even though -lm is a compile flag. [C]

Any reason cc -g -lm -DBLITZ_HOST_IS_LITTLE_ENDIAN would produce an error with code using math.h? Is it possible there's a difference between GCC version 4.0.3 (documented working version) and version 4.6.3 (my current version)? makefile and asm.c…
BSull
  • 329
  • 2
  • 10
7
votes
3 answers

rust diesel linking with `cc` failed

Ok, so kind of getting nowhere here. Before I posted a problem with my Mac M1 having linker issues with Rust Diesel and got nothing. So I spun up an Ec2 instance and tried to run this crate here and got the following: error: linking with `cc`…
max89
  • 443
  • 5
  • 18
7
votes
1 answer

error occurs when installing cryptography for scrapy in virtualenv on OS X

I was installing scrapy with pip in virtualenv on OS X 10.11. When it's installing cryptography, it said: building '_openssl' extension cc -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -Os -pipe -fno-common…
李华良
  • 224
  • 3
  • 10
7
votes
2 answers

How to get CMake to use the default compiler on system PATH?

There is the same question and the answer. The problem is that the answer seems to be wrong (actually is not the answer to the asked question). Can I re-ask the question? The problem: $ echo…
Sap
  • 914
  • 1
  • 6
  • 20
6
votes
3 answers

ld: library not found for -lgfortran - Mac Symlink issue?

I am trying to install ObsPy with pip. The installation fails on the cc command below: cc -bundle -undefined dynamic_lookup -L/usr/local/lib -L/usr/local/opt/sqlite/lib build/temp.macosx-10.8-x86_64-2.7/obspy/taup/src/emdlv.o…
sequoia
  • 3,025
  • 8
  • 33
  • 41
5
votes
3 answers

How to set the path that a .so library will search for other .so libraries?

I have a libA.so that depends on libB.so, which is located at ../libB/ (from libA.c). I'm trying to compile things in such a way that I don't have to set any environment variables. I have: cc -std=c99 -c -fPIC -I../libB/ -Wall libA.c cc…
Dan
  • 2,851
  • 3
  • 20
  • 27
5
votes
3 answers

Generic Makefile not working on FreeBSD

Please note that this is not a duplicate of the other questions named generic makefile. I have followed all of the instructions on other questions about generic makefiles, and this is the code I have come up with from that: CFLAGS = -c CC =…
Ethan McTague
  • 2,236
  • 3
  • 21
  • 53
4
votes
1 answer

Anyway to pass string containing compiled code instead of file path to ctypes.CDLL?

Background I am trying to call C functions inside python and discovered the ctypes library (I'm fairly new to both C and python's ctypes), motive (however stupid) is to make python code's speed on par with c++ or close enough on a competitive…
Sujal Singh
  • 532
  • 1
  • 5
  • 14
4
votes
2 answers

Can't install cargo-binutils library: Failed to find tool. Is `gcc.exe` installed?

When I run cargo install cargo-binutils, I get the below error. I have gcc installed and in my path, to the point where where gcc correctly returns the location. gcc version: gcc.exe (i686-posix-dwarf-rev0, Built by MinGW-W64 project) 8.1.0 I…
guy
  • 61
  • 1
  • 8
4
votes
2 answers

Laravel Mail send even if cc and bcc is null

I have mail send function in laravel public static function Compose($to,$cc,$bcc,$subject,$body) { // return $to; try { $data = [ 'body' => $body ]; if(env('APP_ENV')…
Vishal Shetty
  • 1,618
  • 1
  • 27
  • 40
4
votes
3 answers

getenv("cc") is returning NULL , why?

I am learning C and came across cc in the bash shell i.e. whenever I make my source files I see this command. Hence started to understand it,started with gcc --help but couldn't find cc option in the help. So started surfing the net, and came…
Naresh
  • 369
  • 2
  • 11
1
2 3
19 20