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
1
vote
1 answer

Linking a static library with gcc on Centos7 not working

I have a Java JNI project that uses the following command to build on Mac OS gcc -g -I/my-project-dir -o libmylibrary.jnilib -lc -shared -I"${JAVA_HOME}"/include -I"${JAVA_HOME}"/include/darwin -L ./quickjs-2021-03-27 -l quickjs…
1
vote
3 answers

Is there any way is ther to create a ".O" file without main() function in ".C" file

In linux : C++ Is there any way is ther to create a ".O" file without main() function in ".C" file . iam using "cc -c file.c -o file.o " with sun compiler " gcc -Wall -c file.c " with g++ compiler may i know 1) what command we need to…
user751747
  • 1,129
  • 1
  • 8
  • 17
1
vote
0 answers

PVM library (Parallel virtual machine) installation problems when use make

I'm trying to install PVM library (https://netlib.org/pvm3/pvm3.4.6.tgz) I successfully extracted the package in my $HOME Following the Readme instructions I have set my env variable PVM_ROOT=$HOME/pvm3 at the end of my $HOME/.bashrc file and I…
thesylio
  • 144
  • 7
1
vote
3 answers

cross compilation from Solaris sparc to Solaris x86

May I know if I can cross compile the Solaris x86 library from Solaris sparc server? The source code is mainly in C++ (some C). I need to use the Solaris C++ compiler CC to compile. I understand that some compile or link flags are different between…
ygao
  • 127
  • 9
1
vote
2 answers

C / C libcurl how to POST form submission, just ordinary web form submission data

I want to simulate web form submission to the PHP API, but it fails, I tried a lot of methods. My code #define HADES "Content-Type:application/x-www-form-urlencoded;charset=utf-8" int SendPacket(char *packet, const char *server) { …
jianbo
  • 23
  • 4
1
vote
1 answer

In Makefile, is the variable $(CFLAG) always appended?

consider the following simple makefile CC=gcc CFLAGS=-I. all: hellomake hellomake.o: hellomake.c hellomake.h $(CC) -c hellomake.c -o hellomake.o $(CFLAGS) hellofunc.o: hellofunc.c hellomake.h $(CC) -c hellofunc.c -o hellofunc.o…
learning_dude
  • 1,030
  • 1
  • 5
  • 10
1
vote
1 answer

HP-UX cc uses a default setting to allow null dereferences, is that possible in gcc with RHEL?

From the HPUX cc, c89 - C compiler man page: -z Do not bind anything to address zero. This option allows runtime detection of null pointers. See the note on pointers below. -Z Allow…
Kyle
  • 97
  • 5
1
vote
1 answer

Can't compile C library with C++ code using g++

I'm trying to create a C++ program that embeds FFMPEG functionality. To do that I took one FFMPEG example and recompiled it as is using g++ (only adding extern "C" where needed). Compilation is successful, but linking fails for undefined symbols. cc…
shayst
  • 267
  • 4
  • 14
1
vote
0 answers

Adding CC to headers of php email script and formatting the php response code

I have a working email script. Now I want to add the senders email in CC, so they get a copy of the email as a result. So I added the $headers part to it and in the email on the receiving end it shows as being CC'd, but the CC'd email does not…
Johan
  • 21
  • 1
  • 4
1
vote
1 answer

How to properly use if else statements and while loops with a child process in C

I'm new to C and I've been trying to create a program that takes a user input integer makes a sequence depending on whether the number is even or odd. n / 2 if n is even 3 * n + 1 if n is odd A new number will be computed until the sequence…
Chigozie A.
  • 335
  • 4
  • 16
1
vote
0 answers

how can I send cc mail in python using smtplib

with my current code, I am able to send bcc but I want to send cc how can I do so. I tried splitting the mail using [string.split(",")].Though It said it could not process lists. Since I am a beginner python programmer that is the maximum I could…
1
vote
1 answer

Array in C and null character

I'm doing an exercise proposed by the book "The C Programming Language" by Brian W. Kernighan and Dennis M. Ritchie concerning the array. The exercise wants a program that is able to receive lines of text as input and display those that exceed 80…
Roberto Rocco
  • 450
  • 2
  • 11
1
vote
1 answer

Error: Dynamic Symbol Retrieval Error: ./build/Release/obj.target/math.so: undefined symbol: add . Node-ffi on linux system

I am trying to use node-ffi to access cpp library and use the functions. math.cc is cc file with definition of all the functions. used node-gyp to build the code. and generating .so file which is accessed by math.js. math.cc #include "math.h" int…
user11758292
1
vote
0 answers

How to get the cl-libusb library to load without '-no-pie' cc error in Lisp?

I am using Steel Bank Common Lisp 1.5.2 with ASDF 3.3.1 and quicklisp 2019-02-16. I need to load the cl-libusb library, and it is failing with the error: cc: error: unrecognized command line option ‘-no-pie’ Having googled for this error, I…
Sod Almighty
  • 1,768
  • 1
  • 16
  • 29
1
vote
1 answer

what is CC compiler in Solaris 11 for compiling c programs. make file specifies something like " CC=cc -Xa -mt -xc99=no_lib"

I have these lines in my make file: ifeq ($(SYSTEM),SOLARIS) # SUN Solaris 8 no c99 ifeq ($(OSVER),510) CC=c99 -Xa -mt LD=c99 else CC=cc -Xa -mt -xc99=no_lib LD=cc I have to compile my code in Solaris…
bhanu
  • 35
  • 5