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].
296
questions
0
votes
1
answer
45
views
How can I add a "std=c99" flag to cc when compiling using cargo?
I'm trying to install ripgrep (link to repo) with the pcre2 feature from source.
To do so I run the command cargo build --release --feature 'pcre2' to build the exec.
When doing so, cargo tries to ...
1
vote
1
answer
64
views
Error while loading shared libraries: libpq.so.5
I am trying to write a basic client for Postgres integration in C using libpq, I compiled the libraries following the Client-only installation on this page and so far so good, I compile my program ...
0
votes
0
answers
64
views
Running gtest on AIX
I am trying to run some simple gtest tests on an AIX machine:
#include <gtest/gtest.h>
int add(int a, int b) {
return a + b;
}
// Test case to check addition function
TEST(AdditionTest, ...
1
vote
0
answers
16
views
red hat 9 overlaying of C uninitialized data broken (linker issue) - any solutions other than now using -fcommon?
Since the beginning of time (or at least 1970) unix/linux C has allowed non/un initialized data object to be overlayed in multiple object files even if different sizes. Apparently this is now "...
0
votes
0
answers
80
views
Same versions of Linux, CC, LD have different link order rules
I have a desktop PC and a laptop PC both running identical Linuxes (Ubuntu 22.04.4 LTS) but the desktop has few extra bits and pieces loaded, I would have thought irrelevant, both are running gcc-12 ...
0
votes
0
answers
98
views
How do you get the SBCL foreign function interface example from the SBCL User Manual to work?
I posted the following wanting to experiment with the foriegn functin interface in SBCL. Several good comments came forth. I left out something I didn't understand to be important. My problem working ...
0
votes
1
answer
81
views
cc compiler can't find link library in provided path
I am trying to link against the Tensorflow library. Here is my makefile:
TF_PATH=/home/wade/.local/lib/python3.10/site-packages/tensorflow
CFLAGS=-I$(TF_PATH)/include/ -L$(TF_PATH)/
CC=cc
artifaction ...
2
votes
1
answer
105
views
How does a C compiler parse code like `arr[]`?
It is well known that function declarations like
void foo (int arr[])
and
void foo (int* arr)
are identical since array variables are just pointers to the first element of the array.
My question is ...
0
votes
0
answers
57
views
configure: error: C compiler cannot create executables ERROR on FreeBSD 14.0-RELEASE
I'm not able to install sudo on my FreeBSD 14.0-RELEASE-p3 amd64
marietto:/usr/ports/security/sudo # make
===> License sudo accepted by the user
===> sudo-1.9.15p4 depends on file: /usr/...
1
vote
0
answers
192
views
Linking with 'cc' failed (when trying to compile a simple 'hello_world' for Android terminal)
I'm trying to test what an Android terminal application would be writing the simplest program (hello_world) in Rust. I have downloaded the Android NDK, which I have placed in ~/Android/Sdk/ndk/26.1....
0
votes
0
answers
57
views
configuring petsc with --CC compiler (mopish) on silicon Apple Mac M1 MAX
configuring petsc with following command on zsh
./configure \
--CC=/opt/homebrew/Cellar/mpich/4.1.2/bin/mpicc
--CXX=/opt/homebrew/Cellar/mpich/4.1.2/bin/mpicxx
--FC=opt/homebrew/Cellar/mpich/4.1....
1
vote
0
answers
161
views
How to compile Rust from Linux to Macos?
I have a simple file main.rs, with the print Hello, World from Rust!. Under my system - Linux, everything compiles without any problems, both through rustc and through cargo. But when I want to make a ...
0
votes
0
answers
167
views
The prelaunchtask c/c++ :gcc.exe build active file terminated with exit code -1
#include<iostream>
using namespace std;
int main()
{
int a[10][10], b[10][10], null[10][10];
int r, c;
cout << "Enter the number of rows"<< endl;
cin >&...
0
votes
1
answer
953
views
How can I completely remove rust from my computer?
I was trying to build c++ code inside rust, and somehow I made some changes and now I am not even able to do simple cargo build command as it's providing me the following error
error: could not ...
2
votes
0
answers
64
views
Machine-readable metadata autogenerated by Creative Commons (CC) not W3C-compliant
I added a CC license to my website using the Choose a License tool hosted by CC:
<a rel="license" target="_blank" href="http://creativecommons.org/licenses/by/4.0/">...