C is a general-purpose programming language

learn more… | top users | synonyms

0
votes
1answer
23 views

C programming in Ubuntu SnappyCore

I recently downloaded ubuntu snappycore OS. I wonder if i can install a GNU compiler for developing C applications. If I can, how do I do it?
0
votes
0answers
35 views

collect2: fatal error: cannot find 'ld' compilation terminated

When I try to run c and C++program I am getting collect2: fatal error: cannot find 'ld' compilation terminated. I have already install GCC and G++ latest version. Any buddy please help.
1
vote
0answers
60 views

Compiling C source code using makefile

I'm trying to compile a C-source code in Ubuntu using Make function but was unsuccessful. I've also previously installed a cross-compiler but the error message says: unable to access /hiwork/...
1
vote
1answer
18 views

Need starting point to create a server in Ubuntu (ver 14) and writing apps (preferably in C) [closed]

I would like have an Ubuntu server where I could write an application, preferably in C, that would accept files from another computer. This would be over the Internet, not a LAN or the likes. There ...
-4
votes
1answer
35 views

Help with FUSE filesystem [closed]

I am new to Ubuntu and I need to create a FUSE based file system. I've seen many examples online, but I can't understand the differences between the examples. Some examples from what I've seen so far ...
0
votes
0answers
15 views

compilation terminated: Package linphone was not found in the pkg-config search path [duplicate]

In trying to compile helloworld.c for linphone, I get: thufir@mordor:~/sip$ thufir@mordor:~/sip$ gcc -o helleworld helloworld.c $(pkg-config --libs --cflags linphone) Package linphone was not found ...
0
votes
1answer
47 views

C Source to .Snap [closed]

Source is in C. Requires multiple dependencies to successfully make. This will not appear in the app-store. There is no GUI component. This application is designed to run on a specifically-...
2
votes
5answers
454 views

how to code in ubuntu? [closed]

I used turbo c++ in windows to write c/c++ codes. Recently I started using Ubuntu, now where should i write c/c++ code in Ubuntu like we used to do in windows? Which software should I download from ...
0
votes
0answers
19 views

Problem running script from rc.local

I have a C script running to do some stuff when i push a button on my raspberry pi. When i run this script from a shell window, everthing works fine. However when i run the exact same script from rc....
0
votes
0answers
48 views

What's the most convenient GUI framework in Ubuntu 14.04 to create a graphical interface for a Kinect 2.0?

I want to create a graphical interface for the Kinect 2.0 (for Xbox One) in Ubuntu 14.04 LTS combining Python and C programming languages, in order for anybody to be able to easily use it, i.e., ...
0
votes
1answer
18 views

“bash: ./cents: no such file exist or directory” while trying to run a program that has already been compiled

Can someone explain to me why this happens? It compiles the program fine but it wont let me run it. I'm on ubuntu 16.04 Bonus question: How can I run the math library on Geany? I love the interface ...
0
votes
0answers
42 views

How to ping an address port?

I'm working with this code that drop packets in a specific port : #include <linux/module.h> #include <linux/string.h> #include <linux/kernel.h> #include <linux/ip.h> /* ...
0
votes
0answers
22 views

Setting up a window manager development environment and a basic guide

I am using Ubuntu and I am not able to understand from where can I get the Xcb libraries. While I was checking some guide (whose name I forgot) I got the command : cc file_name.c -lxcb It was written ...
3
votes
0answers
101 views

How can I run an c/c++ program that use GNU Scientific Library (GSL)?

I'm trying to run 2 simple examples in c/c++ using the GNU Scientific Library. That are the codes: 1st: An Example Program #include <stdio.h> #include <gsl/gsl_sf_bessel.h> int main (...
0
votes
1answer
46 views

I want to compile C file

I want to compile c file. I use g++ <filename> -o <output-filename> Error: ch34x.c:13:24: fatal error: linux/init.h: Directory or file doesnt exist. (here is hash I cant type here)include ...
0
votes
0answers
52 views

14.04 X11/xlib Bad Access

I asked this question on StackOverflow (link) but then thought this might be the better forum to get my question addressed. Basically, I wrote some code to listen for certain keypresses (like 'c') ...
-4
votes
1answer
62 views

A c program works well in Ubuntu but when I compile and run it in windows using MinGW, the program runs but in result it shows some garbage value [closed]

I a wrote a C code in Ubuntu 14.04.4 LTS and compiled it. It is working as expected.But in windows it is running but at last in result it is showing some garbage values. The code I wrote is #include ...
0
votes
1answer
35 views

C compile error [closed]

when I try to compile my code I get this error : error: expected declaration or statement at end of input } and error: function declaration isn’t a prototype [-Werror=strict-prototypes] void ...
5
votes
2answers
587 views

lint: command not found

Does Ubuntu have a lint utility? How is it installed? In computer programming, lint is a Unix utility.. https://en.wikipedia.org/wiki/Lint_%28software%29 thufir@mordor:~$ thufir@mordor:~$ gcc ...
0
votes
2answers
46 views

What is the meaning of this error: “Problem accessing file status”? [closed]

I am compiling in terminal a c code and when I am trying to run it I got this error. Is there any specific meaning? and how I can fix it?
2
votes
0answers
40 views

Questions regarding AppIndicator

I am trying to build a JNI wrapper for using Ubuntu's AppIndicator in a Java application. I have some experience in C/C++, though no experience in GTK and Ubuntu development. I have already done some ...
0
votes
1answer
293 views

Clion “Bundled Cmake does not work in this enviroment” ubuntu 14.04

I used Eclipse CDT for college lectures, but today I found the solution for C/C++ by JetBrains. But I can't compile because I don't know how to set the compiler.
-1
votes
1answer
36 views

How to get the current battery statistics using a kernel module? [closed]

I am using Ubuntu 14.04LTS. Can anyone give me some pointers on how to get the current battery level and the charging status of the laptop using a kernel module. If possible please attach the Makefile ...
0
votes
0answers
131 views

Problem with Cross-Compiling (C compiler doesn't work) [SOLVED]

I'm trying to compile the latest version of tcpdump (for monitoring network traffic) by using Cross-Compiling to create an Android binary. I'm following this steps: http://www.androidtcpdump.com/...
-2
votes
1answer
94 views

running shell script using c program [closed]

I wrote a script to hide user input during runtime it works as a simple script but i want to integrate into c program but gives following errors: warning: missing whitespace after macro name error: ...
3
votes
2answers
306 views

How to debug c programs by gedit?

Is it possible to debug our programs written in c by gedit text editor ? If not, how can i do it ?
0
votes
0answers
73 views

libiptc error on unbunt14.04

Am trying to work with iptables, using libiptc to manipulate the entries. Header looks something like this. I have iptables-dev installed on my machine. Am getting following error, but the same ...
-1
votes
1answer
193 views

How to install C compiler in version 15.10?

I've searched many methods, but couldn't find best C compiler. Earlier, I used Win7. In that, I've used Turbo C/C++ v4 compiler. It will open in DOSBox. So, I've installed DOSBox in Ubuntu 15.10. I've ...
5
votes
3answers
2k views

What is EOF and how to trigger it? [closed]

This is my C source code. When I build it in Ubuntu, it starts to get characters but I don't know how to end the program, as it does not end by inputting ENTER or a carriage return. What does EOF ...
0
votes
0answers
72 views

Why do I get this message? I am just install build-essential?

xxx@xxx:~$ sudo apt-get install build-essential [sudo] password for xxx: Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages ...
0
votes
0answers
18 views

data is missing while writing into a file in Ubuntu

I am using UBUNTU 14.04 LTS. I am coding GUI program with QT creator,for MIL-STD-1553 communication.I am saving the Data what ever sending the data to RT(Remote terminal)from BC(bus controller) in a ...
0
votes
2answers
121 views

I need root to run ./a.out (C) program [duplicate]

cd /media/k4li/data2/C gcc program.c ./a.out running ./a.out: bash: ./a.out: Permission denied if I enter sudo ./a.out i get: sudo: ./a.out: command not found
0
votes
0answers
40 views

How to create App Indicators using glade and c

I have to create an app indicator for my project. After several research I found that libappindicator is an option. But it seems depriciated. Also I am doing my project in gtk-3. Is there any way to ...
0
votes
1answer
159 views

Makefile giving error

I recently started learning C language on Ubuntu 15.10 .Today I learned about Makefile from http://c.learncodethehardway.org/book/ex2.html .But the problem is I keep on getting error bharat@...
0
votes
1answer
77 views

Unable to compile in geany

Whenever I try to compile any file whether c , c++ or python in geany I get this error.
0
votes
2answers
40 views

safe files in c on ubuntu 15.10 [duplicate]

I would like to write a Software and this Software have to save files in /usr/share/xy/. The Software would write and read this data with fprintf() and fscanf(). The owner of the directory /xy/ is ...
0
votes
1answer
60 views

C complier is not working

Well I am trying to build the dependencies between some scripts for the android-python27 project in order to integrate charm library in a apk.While I am running a script named pbc.sh I get the ...
0
votes
1answer
26 views

The file descriptor is duplicated in the thread [closed]

My C source behaves strangely. I use Ubuntu 14.04 I use two pthread. And in each of pthread calls the open () and socket (). Oddly, this file descriptor is duplicated in certain cases. Why do ...
2
votes
2answers
1k views

Can't access cairo.h

I've installed cairo-1.4.14 using make install, but after trying to compile my code: fatal error: cairo.h: No such file or directory #include <cairo.h> ^ I compile using ...
0
votes
0answers
12 views

Can't install library in Ubuntu 14.04 [duplicate]

I tried to install cairo-1.14.4 library. After make install: /usr/bin/install: cannot create regular file '/usr/local/lib/libcairo.so.2.11400.4': Permission denied
0
votes
3answers
178 views

How do I compile a c program made in sublime text? [closed]

I am new to programming and I used sublime text but the gcc command dos not work and I need help to compile the code
0
votes
0answers
105 views

How to cross compile ARM lib for use in xCode on Mac OS X?

How to cross compile a static lib in C for armv7 architecture to be used in iOS app projects developed and linked in xCode on Mac OS X machine?
1
vote
1answer
172 views

libhid.so.0: cannot open shared object file: No such file or directory

I am trying to install an old program from here I can't seem to get it working it kicks back "shark: error while loading shared libraries: libhid.so.0: cannot open shared object file: No such file or ...
-1
votes
1answer
48 views

Trashcan fatal error: no input files

I have to build a trashcan in shell. The trashcan has the following funktions: get(-g), put(-p) and remove from trashcan (-r). So i tried to compile this (gcc -o trashcan.sh) but i got a fatal error: ...
0
votes
0answers
10 views

Recompile MySQL server with debugging enabled

So I am facing this problem, where I am trying to add the .so file to mysql plugin directory and try to create a function from that file and I just keep getting an error and one of the suggestion to ...
1
vote
0answers
163 views

Can't open shared library

I am trying to add a function i wrote in C into MySql, in the function I am using 'gmp' library, it compiles correctly and I copy the '.so' file to '/usr/lib/mysql/plugin/' and then log in to mysql ...
0
votes
0answers
111 views

integrate NVIDIA GeForce 9400 GT on ubuntu 15.10 and Nsight EE to start develop CUDA C/C++ software

I try to integrate NVIDIA GeForce 9400 GT on ubuntu 15.10 and Nsight EE to start develop CUDA C/C++ software. there is a problem to use debugger of NSight EE when a display is connected to NVIDIA ...
1
vote
3answers
324 views

How do I run my C program?

I am a newbie in c programming language , i am following a course right now , but I have a small problem which is run the file for testing I have opened gedit and I wrote those code lines int ...
1
vote
3answers
433 views

How to install a stand-alone program

If I create the following program in C: #include <stdio.h> int main(){ printf("Hello World"); } And then compile it like so: gcc helloworld.c -o helloworld Is there any easy way to ...
29
votes
2answers
885 views

How to develop a System Indicator for Unity?

This is not a duplicate of How to create Unity indicators?. I'm looking for system indicator not application indicator. Backgound: From these two questions: How do I add or manipulate Application/...