Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
0 answers
40 views

cc -o out out.s on macOS with M1 chip

I have been learning the chapter of 04_Assemblyhttps://github.com/DoctorWkt/acwj/tree/master/04_Assembly. According to the README.md, after I typed cc -o comp1 -g cg.c expr.c gen.c interp.c main.c ...
ge1mina023's user avatar
-3 votes
0 answers
91 views

GCC not compiling any source codes [closed]

I'm using Clion and GCC on macOS Sequoia. And, when I tried to compile a source code, it keeps making this compile error. GCC version : gcc (Homebrew GCC 14.1.0_1) 14.1.0 Apple Clang version : Apple ...
bookwormkkm's user avatar
3 votes
0 answers
136 views

std::transform_reduce does not appear to run in parallel with std::execution::par

I have been experimenting with later versions of the C++ standard, in particular to better understand concurrent programming in modern C++. I am developing on MacOS Sonoma on an Intel MacBook Pro. I ...
Etuka Onono's user avatar
4 votes
0 answers
121 views

Multiple object files with identical T(ext) symbols in GCC on Mac aarch64

I have a very simple project on my Mac (architecture = aarch64, xnu-10063.121.3~5/RELEASE_ARM64_T8103 arm64). It consists of the following: // main.cpp #include "s1.hpp" #include <boost/...
SupAl's user avatar
  • 949
-1 votes
1 answer
280 views

'AvailabilityInternalLegacy.h: No such file or directory' error when running C++

I am running my C++ project via CLion. I use the g++ compiler and have the defaults set for the CMake and ninja toolchains in CLion. It used to work totally fine till now, but recently I installed ...
MangoPizza's user avatar
-1 votes
1 answer
111 views

Use gcc in mac instead of clang

I have a mac with Ventura 13.5.1 (intel proc). I need to usc gcc instead of clang in mac, how i can do it? Now i have smth like this on my mac: λ ~/ gcc -v Apple clang version 14.0.3 (clang-1403.0.22....
Nikolay's user avatar
-1 votes
1 answer
109 views

Have two C compilers

I wanted to set up C language on VSCode, and ended up with 2 compilers (clang and gcc) how can I delete one of them ? P.S: I'm using M2 Mac, had to notice that I want a solution to my problem, maybe ...
Aboud Fialah's user avatar
-1 votes
1 answer
160 views

Installing "gcc" on Mac [duplicate]

I decided to install the "gcc" on my Mac Catalina(10.15.7), but it occurred an error when download the "cmake" . Here is the full report: Error: cmake: Failed to download resource &...
cat_lover's user avatar
0 votes
0 answers
64 views

MacOS dlopen search path does not add .dylib extension using gcc/ld

I have a dylib that loads my other dylib on Mac but the search path is correct but it is without extension. Here is an example: hmodule = dlopen(str, RTLD_NOW); I get an error: dlopen(@rpath/libtestx....
Mindaugas Jaraminas's user avatar
0 votes
1 answer
380 views

"ld: library not found for -lasan" error when specifying "-fsanitize=address" with g++@12 installed by homebrew in x86_64 macOS

The error happens when running g++(gcc@12) with -fsanitize=address option. $ g++-12 --std=c++20 -g -fsanitize=address ./main.cpp -o a.out ld: library not found for -lasan collect2: error: ld returned ...
nemupm's user avatar
  • 23
0 votes
1 answer
92 views

Why gcc on Ubuntu doesn't warn for -Wnon-literal-null-conversion but on macOS?

I came across this issue and I don't know how to evaluate it since I just started learning C and gcc. I created a function to return an array of null terminated strings. Strings are terminated with '\...
Servet Tonga's user avatar
0 votes
0 answers
58 views

Using gcc as linker for assembly code not working

I am trying to make a simple compiler just for fun, and i have been struggling to use gcc as my linker for my assembly code. i want to use the puts function from the c standard library but it doesn't ...
casimir's user avatar
0 votes
2 answers
170 views

Same C code, different output on Mac & Linux

I was messing with pointers and const, while running below code: int main() { const int test = 10; int *ptr = &test; printf("%d\n", test); *ptr = 1; printf("%d\n&...
Lukasz's user avatar
  • 47
0 votes
1 answer
226 views

gfortran installation for MacOS ventura

I am trying to install an older version of Matrix package in R remotes::install_version("Matrix", version = "1.6-1") but got this error ld: warning: directory not found for ...
Yulia Kentieva's user avatar
0 votes
0 answers
83 views

Issues Compiling Double Precision fortran programs on Apple M2

I'm trying to load and compile several of Mark Drela's programs (Xfoil, AVL) on my new M2 macbook pro. I've compiled these before on intelx86 but I'm running into several very curious issues on apple ...
longt's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
90