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

All Questions

Tagged with
0 votes
0 answers
35 views

How to build and Install compiler g++-4.8.5 on ubuntu 24.04 from source code?

I am getting error while building gcc-4.8.5 on ubuntu 24.04 I had followed the below steps as mentioned in the page How to Install compiler g++-4.8.5 in ubuntu 20.04 sudo dpkg --add-architecture i386 ...
Prabhu634's user avatar
1 vote
1 answer
50 views

Setup libstdc++ for a given gcc version

New to Linux here. Already had gcc 11 and 12 on my ubuntu but compiled gcc-14 using following command: ./configure -v --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --...
Xemuth's user avatar
  • 447
0 votes
0 answers
15 views

error with config gcc for setting up atheross csi tool openwrt

I am currently trying to setup openwrt on ubuntu virtual box but there is an error with config the file the gcc, verison is the latest and its installed, when i run make menuconfig command this is the ...
sevinc's user avatar
  • 1
0 votes
0 answers
39 views

error with config gcc for setting up atheros csi tool openwrt

I am currently trying to setup openwrt on ubuntu virtual box but there is an error with config the file the gcc, verison is the latest and its installed when i run make menuconfig command this is the ...
sevinc's user avatar
  • 1
0 votes
0 answers
23 views

‘_mm_loadu_epi8’ was not declared in this scope [duplicate]

My code is calulating L2 distance between vectors. __m512 sum = _mm512_setzero_ps(); __m512 dot5 = _mm512_set1_ps(0.5f); __m512 const_255 = _mm512_set1_ps(255.0f); for (int i = 0; i < d; i +...
Kevinzz's user avatar
0 votes
0 answers
21 views

How to make a c exe global in Ubuntu [duplicate]

I have a file called fsm.c and with the command gcc fsm.c -o fsm I have a new file called fsm. I want to execute the particular file wherever I am while using the terminal. I tried to move it in the /...
CuriousDev's user avatar
0 votes
0 answers
110 views

there is an error with config gcc for setting up atheross csi tool openwrt

I am currently trying to setup openwrt on ubuntu virtual box but there is an error with config the file the gcc, verison is the latest and its installed, when i run make menuconfig command this is the ...
sevinc's user avatar
  • 1
0 votes
1 answer
497 views

GCC "error adding symbols: file in wrong format collect2: error: ld returned 1 exit status" when making C

Undergraduate GCC newbie here. I am working on a simple C program in Ubuntu 22.04.2 ARM64. The C program is prewritten and provided for me to debug using GDB, so the program itself should be "...
Zixuan Q's user avatar
0 votes
0 answers
102 views

Compiler differs error when installing nvidia drivers

The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0 You are using: cc (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0 A. I'm not sure why this makes sense, ...
dadbean's user avatar
  • 11
0 votes
1 answer
70 views

Linker cannot find strnstr() on Ubuntu with libbsd

To port some existing code from FreeBSD to Ubuntu (22.04) with the libbsd-dev package installed, I am encountering a problem in the linking phase: undefined reference to 'strnstr'. Code: #include <...
Monolo's user avatar
  • 18.3k
0 votes
1 answer
51 views

Error encountered after running 'make' despite finding 'stdio.h' in /usr/include

I've encountered a perplexing issue while compiling a program. Despite having the stdio.h file in /usr/include and compiling with the gcc command without errors, I still encounter the following error ...
Jasmine58850_01's user avatar
1 vote
1 answer
62 views

Ubuntu's gcc implies `-fPIC` but openSUSE does not, is it affected by some configuration file or what?

Lab environments: Ubuntu 18.04, gcc 7.5.0, binutils 2.30 (2019-05-08) openSUSE Leap 15.5, gcc 7.5.0, binutils 2.39 (2022-10-25) I realize this problem when building a small .so file from foo1.c . #...
Jimm Chen's user avatar
  • 3,653
1 vote
0 answers
47 views

Find the default library paths and default headers include paths

I'm on an Ubuntu 22.04 system and I'm working with C language and libraries. I know ( from different books, included "The Linux Programming Interface" by Kerrisk ) that this algorithm is ...
Kode1000's user avatar
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
1 vote
0 answers
341 views

Error Message: error: unknown type name ‘int8_t’

Environment: 64-bit Ubuntu 22.04.3 LTS My code: #include <stdio.h> int main(void){ printf("hello world"); } Terminal output: Localhost_8080 says: make hello cc hello.c -o ...
Birdy's user avatar
  • 19

15 30 50 per page
1
2 3 4 5
54