Questions tagged [c]

C is a general-purpose programming language

Filter by
Sorted by
Tagged with
-3 votes
0 answers
47 views

How to Install gcc in a Ubuntu system which has no internet access [closed]

AS a fresher I am working on a Board(i.MX 8M plus Verdin board) ,when I am into the OS of the board I got to know that there is not GCC compalier in it and even I have no internet access to the board ....
Naveen Krishna Muvva's user avatar
-2 votes
1 answer
68 views

I program a small C program from traduction from python. Gcc says : Package 'atk', required by 'gtk+-3.0', not found

I tried : sudo apt-get install atk , I get : E: Unable to locate package atk
Peter's user avatar
  • 1
0 votes
0 answers
19 views

TurboC Dosbox changing windows using Super+Tab or Alt+Tab

I use Ubuntu 22.04.2 LTS, I recently installed and configured Turbo C on dosbox, i attend online courses and use Turbo C to practice. Is there a way that i can use super+tab or alt+tab to change ...
BlackBillHawk's user avatar
0 votes
0 answers
28 views

Adding gtk3 accelerators in C

I'm trying to implement accelerators in gtk3 for my app. I found out how to do it from a post on github. #include <stdio.h> #include <gtk/gtk.h> // This is a callback that will be called ...
user avatar
0 votes
0 answers
45 views

Utility to detect defect C/C++ compiled/object file

Is there a Linux utility to detect a defect C/C++ compiled/object file interrupted amidst its compilation progress ? How its simplest usage ?
HELP ME's user avatar
  • 191
1 vote
0 answers
46 views

How to execute listed ubuntu commands from .txt file using c program in parent process without being redirected to child process and store the output

I have three files. First file contains commands which are needed to be executed and this file is .txt file. Second file is output.txt file which stores the output of the command which has been ...
Basavaraj Kittali's user avatar
0 votes
1 answer
628 views

Ubuntu 23.04 C Compiler cannot create executables - C compiler works no

This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by liberasurecode configure -, which was generated by GNU ...
imran mehdi's user avatar
0 votes
0 answers
38 views

PTRACE_PEEKTEXT ptrace: Input/ouput error

I try to read the values from memory with using PTRACE_PEEKDATA. To find the memory address of specific line I am using with objdump - objdump --dwarf=decodedline ./exe_filename and got the output: ...
Aviel15's user avatar
0 votes
0 answers
271 views

Problem in installing GCC (G++) 5 in ubuntu 22.04

I needed gcc 5 on my ubuntu 22.04. I tried using "sudo apt-get install gcc-5 g++-5" but this output is coming: sudo apt-get install gcc-5 g++5 Reading package lists... Done Building ...
Anirudh's user avatar
1 vote
0 answers
119 views

PTRACE_TRACEME error "Operation not permmited"

I am trying to use PTRACE_TRACEME to trace the child process: if (ptrace(PTRACE_TRACEME, 0, NULL, NULL) == -1) { perror("ptrace_traceme"); exit(EXIT_FAILURE); } And I got the error: ...
Aviel15's user avatar
  • 11
0 votes
0 answers
137 views

gnuplot undefined symbol in c

I have a c program to plot a simple gaussian distribution. However, whenever I call the program I get this error: gnuplot: symbol lookup error: /snap/core20/current/lib/x86_64-linux-gnu/libpthread.so....
Volker Tachin's user avatar
0 votes
1 answer
1k views

How to fix: "No Space left on device" on /tmp

I'm facing an issue where my program won't compile due to no device space in the /tmp folder. After a little examine and deleting all files on tmp it stills shows me the same error: after system ...
Kali C's user avatar
  • 11
0 votes
0 answers
2k views

fatal error: sys/sysctl.h: No such file or directory compilation error, why this error?

/home/william/Desktop/BlitzMax/mod/brl.mod/platform.mod/glue.c:24:10: fatal error: sys/sysctl.h: No such file or directory 24 | #include <sys/sysctl.h> | ^~~~~~~~~~~~~~ ...
william soennichsen's user avatar
0 votes
1 answer
2k views

gcc compiler can't find include file stdio.h

The gcc compiler can't find the include file stdio.h. $ batcat test.c ───────┬────────────────────────────────────────────────────────── │ File: test.c ───────┼──────────────────────────────────...
Anup's user avatar
  • 1
0 votes
0 answers
344 views

Sasquatch (binwalk) throws error when running build.sh

I cloned the repository and installed the c compiler As said here: https://github.com/ReFirmLabs/binwalk/blob/master/INSTALL.md But when trying to build sasquatch, after I installed and cloned it, ...
nat34's user avatar
  • 1
0 votes
0 answers
157 views

Imagemagick C and C++ libraries can't be installed at same time on Ubuntu 22.04

apt install libmagickwand-dev graphicsmagick-libmagick-dev-compat Issue: apt won't install both packages at the same time. apt removes one when I install the other. If I attempt to install both at ...
null's user avatar
  • 1,351
0 votes
0 answers
77 views

When executing a compiled C/C++ file using seccomp and execve in the below code, it is exiting with status 159 and signal 31

I'm trying to execute C/C++ code in a secure environment using Seccomp and Ececve. But, C/C++ code is not being executed while trying with this setup. Please look at the files. seccomp_rules.c #...
Vikram Ayaluri's user avatar
1 vote
2 answers
346 views

ncurses installed... but won't compile code

I've recently returned to Xubuntu 22.04 after a brief stint on Fedora. Under Fedora, I seemed to be able to install ncurses okay. I could then simply write code and compile with commands like: $gcc -...
Lincoln's user avatar
  • 53
0 votes
0 answers
283 views

Minicom not responding for UART communication, Slow response Ubuntu 22.04

I am trying to implement a UART communication using Raspberry Pi Pico (RP2040) board. I have run some demo codes which is provided in https://github.com/raspberrypi/pico-examples. I was able to ...
newbie's user avatar
  • 1
0 votes
1 answer
129 views

Symmetric private key generation using ESAPI API TPM

I was going through the ESAPI APIs , I have hosted the TPM simulator on my Ubuntu 22.04 desktop and trying to generate the symmetric private key from one C program and another C program using the same ...
shekhar's user avatar
  • 787
0 votes
0 answers
46 views

Snap CLion IDE exits on run

I installed snap package of CLion IDE, when I launch it from ULauncher it exits upon clicking run, however when I run it from the terminal it seems to work just fine, what could be the cause of this? ...
ararune's user avatar
  • 21
0 votes
0 answers
53 views

Install clatexmath on Ubuntu

When building a project in C ++, an error occurs on the clatexmath package: CMake Error at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find clatexmath (...
Alex Shin's user avatar
-2 votes
1 answer
7k views

Directory path to open a file in c program

I am trying to append data to a text file (info.txt) at the home directory using C programming language. I am supposed to use the function fopen() that has the following syntax fopen("file path&...
Derhham's user avatar
0 votes
1 answer
324 views

Why this orphaned process is called by a child process of init instead of init?

I know that all orphaned process are taken over by the init process(mother process) but I wrote a c program to understand how processes really work and I notice that a orphaned process is taken over ...
Maxwell D. Dorliea's user avatar
5 votes
3 answers
14k views

How to install clang-14 on Ubuntu 18.04?

Can you help me install clang-14 on Ubuntu 18.04? I think I need a valid repo as apt-get install clang-14 does not work. $ cat /etc/issue Ubuntu 18.04 LTS \n \l $ sudo apt-get update Hit:1 http://...
SpeedChaser's user avatar
1 vote
1 answer
160 views

Output not showing in my ubuntu while compiling c

While compiling my C code in sublime-text in my Ubuntu The output is not shown.enter image description here
Gopal Adhikari's user avatar
0 votes
0 answers
41 views

Error in STM Code after compliling on Ubuntu

I'm following this tutorial for setting up the STm32MP157C-DK2 microcontroller. On the steps for creating a basic hello world program, I am able to compile a program and upload it to the STM through ...
Ben Underwood's user avatar
5 votes
3 answers
3k views

How to print the ■ character in linux terminal using C?

This char is 254 in ASCII Extended Table, and 25A0 in Unicode. If I run putchar(254) the terminal does not recognize the char, as I think it utilizes not extended ASCII.
Fernando Magnabosco's user avatar
0 votes
1 answer
211 views

sudo command make child process to zombies

I'm trying to make a program that divides into child and parent processes with fork(). Child executes arguments with execv() and parent traces him with ptrace(). I made almost all parts of the program,...
SEONGROK KIM's user avatar
0 votes
1 answer
459 views

libc.6 is a symlink to libc-2-31?

I'm running ubuntu 20.04, and I'm tryying to run a python pwn script that has the following line: libc = ELF("./libc.so.6") Which fails with: No such file or directory: './libc.so.6' So I ...
Grazosi's user avatar
  • 109
2 votes
1 answer
126 views

How to add a custom context menu action to a certain mime type Ubuntu 21.10

I am making a installer for my program and I need to add a custom context menu action **only **to a certain mime type.
Markian's user avatar
  • 123
1 vote
1 answer
472 views

Download Linux native x86_64 GCC toolchain?

I'd like do download the GNU GCC package toolchain for Ubuntu, and not install it (sudo apt install build-essential) - just download. There are toolchains for cross-building for Arm targets, but I ...
Danijel's user avatar
  • 411
0 votes
0 answers
212 views

downloading graphics.h

I'm trying to download graphics.h, but when I get to the part where I have to extract the libgraph-1.0.2.tar.gz file, I can't find that file anywhere on my directory. I am trying to download graphics....
Killerbee's user avatar
0 votes
0 answers
77 views

getting error Error: module pwquality: child process exited with code 1 while building gnome-control-center repository

I m new in GTK development with the meson build system and have built a gnome-control-center repository that is using meson build system and built-in c on my system's virtual machine but on a VPS it's ...
Usman Hafeez's user avatar
1 vote
0 answers
101 views

Ubuntu can't turn off Legion back logo light

Is there a way to turn on/off the Legion Slim 7 Logo light on Ubuntu OS? It works by pressing Fn+l on windows; doesn't work on ubuntu. The keyboard light works perfectly fine.It is just the logo light....
emily's user avatar
  • 11
2 votes
0 answers
77 views

Unable to get Gnu C Library debug symbols

I have two machines. One is Intel x86_64, the other is aarch64 (although I doubt the architecture variation is the problem). Both are Ubuntu. I compile the same program on each of the machines, with ...
whoami's user avatar
  • 21
0 votes
1 answer
2k views

syntax error near unexpected token '(' when initializing main [closed]

So I keep getting an error: syntax error near unexpected token '(' and it's referring to the line 'int main(){' in my code. I don't know why I'm getting this error, can someone please help?
Anna M's user avatar
  • 11
1 vote
2 answers
599 views

How to use KDevelop with github?

Previously I used VSCodium for my C and C++ programming needs. But I a beginning to like KDevelop more. There is actually 2 things that I'm unable to setup properly on KDevelop: Github integration and ...
td211's user avatar
  • 393
-1 votes
1 answer
7k views

Another no such file or directory? But the file exists!

i am facing a problem that consumed a lot of my tine. i am trying to link my object file (small program compiled with nasm) with ld linker and using c functions. I searched a lot and i found that the ...
Mohamed Elleuch's user avatar
-1 votes
1 answer
387 views

How to write a C api program to make calls using linphone sdk [closed]

I am very new for the C programming, I want to create a C program to make calls using linphone-sdk. i don't know how to start writing a C program.
Parveen Jangra's user avatar
-5 votes
1 answer
64 views

Coding on VS code [closed]

Hello this is my first time to learn C by a book But The code doesn't give output I installed build essential What should I do ? int main() { printf("Hello World!"); }
Mahmoud Ahmed's user avatar
0 votes
0 answers
36 views

Sending ICMP Echo Request Using Raw-sockets

I compiled a c program that sends ICMP Echo Request Using Raw-sockets and also receives one back (ping). However, for some reason, even though I am the ROOT I still seem to be denied by the permission....
Ben Zeltser's user avatar
-1 votes
1 answer
107 views

Embedded studio

I used to program embedded microcontrollers with keil uvision software on windows but recently I switched to ubuntu operating system and still don't know how to program microcontrollers (cortex -m3 ...
tungdeptrai's user avatar
-1 votes
2 answers
304 views

"Helloworld" c program failed on my new ubuntu 20.04

when i build hello world program on eclips they are showing this when i build helloworld program on c on eclips this is shown on console:- 10:21:36 **** Build of configuration Debug for project sample ...
sahood's user avatar
  • 7
0 votes
2 answers
488 views

How to create a .desktop to a C program? [closed]

So I'm trying to execute a C terminal program just by double clicking it. I'm trying to do that through a .desktop file The desktop file has permission to execute as a file and it's in my desktop. ...
Vithor's user avatar
  • 9
1 vote
0 answers
188 views

GCC compiling problem

I just downloaded the GCC compile for C/C++. After compiling with the command gcc main.c -c -lGL -lGLU -lglut I get a permission error which can be fixed by changing the permissions. I then get this ...
Dequog's user avatar
  • 55
0 votes
0 answers
311 views

Watchman: C compiler cannot create executables

I try to install Watchman for React Native. At the configure I get the following error: configure: error: in '/home/maxim/watchman': configure: error: C compiler cannot create executables See 'config....
DerWeisse's user avatar
1 vote
1 answer
2k views

Netbeans 12.4 C/C++

I need to build C/C++ projects on Netbeans 12.4 with Ubuntu 18.04. There have been a long list of failures - trying earlier versions of Netbeans and even Eclipse. I can't find a simple tutorial / ...
dms489's user avatar
  • 23
0 votes
0 answers
57 views

How to detect that a C/C++ file is using windows specific stuff

Basically I want to test files/libraries/code in general that wont run on Linux by detecting windows specific includes, program calls, dynamically linked libraries at runtime, anything that isn't ...
Ubuntu4Life's user avatar
0 votes
1 answer
409 views

GCC compiler does not recognize in the CodeBlocks IDE (Set variable: LD_LIBRARY_PATH=.:)

I am using Ubuntu 20.04 LTS and I have been trying to get up and run the C programs in codeblocks IDE and it keeps getting me this following error. Checking for existence: /media/darkpheonix/dptech/...
Pulasthi Aberathne's user avatar

1
2 3 4 5
10