C is a general-purpose programming language

learn more… | top users | synonyms

0
votes
0answers
20 views

Problem running graphics.h in Ubuntu 14.04 in CodeBlocks [on hold]

I've been trying to compile the following C code in CodeBlocks with the -lgraph extension (which I have set in the Linker Settings), the graphics.h library of Turbo C++ and libgraph-1.0.2 being ...
-1
votes
1answer
16 views

Unable to use ncurses eader in ubuntu lts 14.04 [on hold]

hello guys please help me with this problem.... i just started using ubuntu and there are some problems while i'm using c language like i can't use conio, graphics etc. Please also suggest tips to ...
3
votes
2answers
149 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
28 views

How should I start to learn c++? [closed]

I have a good knowledge of programming in C and I want to learn c++. Should i start again from data types and variables ? Where from should I start with c++ if I know C?
0
votes
0answers
13 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
41 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 ...
6
votes
3answers
1k 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
25 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 ...
1
vote
0answers
17 views

Export functions of a library? [closed]

So, I want to make a clone of a library(libc for the matter, but I would like to apply this elsewhere), and I'd like to know method signatures for LD_PRELOADing, or if I make a complete wrapper for ...
0
votes
0answers
14 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
33 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
20 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
28 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 ...
0
votes
1answer
38 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
28 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
32 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
14 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
310 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
65 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
30 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
0answers
84 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
26 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
6 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
63 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
73 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
237 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
377 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 ...
14
votes
0answers
329 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 ...
0
votes
0answers
39 views

Switch between terminals

I want to write an application in C Named AppController. as you can guess this application should control some other applications. Here I have a problem. I want to run three application with this ...
0
votes
1answer
28 views

A problem which I encountered in Eclipse [closed]

I have written a simple code in Eclipse/C Project as below: #include <stdio.h> typedef struct list { int data; struct list *next; }; list Listptr; int findTheSmallest() { } int ...
0
votes
1answer
646 views

checking whether the C compiler works… no

I am trying to run ./configure checking for pkg-config... /usr/bin/pkg-config checking for roff2html... no checking for distro... redhat checking pkg-config is at least version 0.9.0... yes checking ...
0
votes
2answers
118 views

Why CLOCK_TAI and CLOCK_REALTIME returns the same value?

On my Ubuntu 15.04 (Linux Kernel 3.19.0-28-generic) I get the same value when requesting CLOCK_TAI and CLOCK_REALTIME with clock_gettime(). This is apparently an error because the difference between ...
1
vote
0answers
97 views

How do i save a c program using geany? Error: The file on disk may now be truncated

Everytime I try to save a file in my usb Ubuntu using Geany, it gives me the following error message : Error opening file '/home/ricky/INT/1406641703/Lab02/Hallo.c': Permission denied The file ...
-1
votes
1answer
34 views

How to build native RXTX library for Ubuntu12.04/14.04?

Can someone give me a tip on how to build the native rxtx library on Ubuntu 12.04/14.04? We need to run on 12.04 but i develop on 14.04. I grabbed the source files from here: ...
0
votes
2answers
87 views

Problems with su: Authentication Failure

I am currently using Ubuntu and am 100% new to Unix. I have installed Ubuntu to program in C and will be using the "Learn C the Hard Way" online textbook ...
0
votes
0answers
72 views

Help for create a GTK app using Glade xml file. (version 3 of both)

(scuse my for my english, I'm french) Hy, I'm pretty comfortable with C and I was looking for next level with graphical interface, I try SDL but it's not what I want, I need to create native system ...
1
vote
1answer
57 views

Monitoring resource usage by single application over period of time

I am looking for an utility which can monitor the resource usage (CPU & RAM) by an application. I have an third party application which runs as service, once started, it will receive requests ...
1
vote
1answer
224 views

Confused about how to compile modsecurity module for apache in Ubuntu 14

After I followed the instructions in Building Custom ModSecurity Modules section in modsecurity dev guide in order to compile mod_tfn_reverse.c using the command apxs -ca mod_tfn_reverse.c, I'm still ...
0
votes
1answer
28 views

How do I change the final location of a compiled c program in the terminal

After a c program is compiled it is stored in ./a.out. Is there any way in which I can change the file to any name I want?
0
votes
1answer
64 views

How can I get my terminals / shells to have custom designs in it?

How can I add fun stuff to my terminal so I have extra zazz for when I break every thing every day! :D I'm learning C / C++ and think root projects and custom terminals would be fun way to practice ...
0
votes
0answers
119 views

Is there any step by step instructions to make Eclipse Mars look and feel like Visual Studio for Ubuntu?

I have been using Visual Studio ever since Visual Studio 6.0 and I like the way the IDE is arranged. I love the dragging and dropping of controls onto the GUI and the event driven programming. ...
1
vote
0answers
61 views

Can't call gnome-screenshot in C

I want to call the command gnome-screenshot -ac in my C program using system("gnome-screenshot -ac") or exec() but they didn't work. I'm sure that this command works well because I can use it in the ...
2
votes
0answers
41 views

Where's device file of the sound card?How can I play by C

In /dev, I just find /dev/console, rather than /dev/dsp, /dev/audio, etc., which friends told me the device file of sound card in Linux. Now, I want to play music and change the volume by C in Ubuntu ...
1
vote
1answer
30 views

Help following instructions (stuck at editing a file)

I'm following these instructions. This is what I've done so far: Installed JDK Downloaded NDK & SDK, extracted them and MOVED them to usr/src Configured my $PATH Ran android and now I'm ...
1
vote
1answer
98 views

bash - can shellcode be made from a bash script?

I was thinking it can't, since there's not really a binary for bash scripts, but having to write a C program every time you need to generate shell code for a single command is just a pain.
1
vote
1answer
105 views

SNAP Installation C++

I am new to Linux and working in its environment. I have trouble understanding and installing SNAP library for C++ on Ubuntu 14.04. I am following this tutorial. Inside the SNAP directory I run the ...
0
votes
1answer
130 views

gdb - load kernel module for remote debugging

Ubuntu 14.04 LTS: peter@peterubuntu0:$ insmod mymodule peter@peterubuntu0:/sys/module/mymodule/sections$ cat .text .data .bss 0x0000000000000000 0x0000000000000000 0x0000000000000000 So how do I ...
0
votes
1answer
210 views

How to open new terminal by C code?

I am using ubuntu 14.04 and Qtcreator to complile a code. I am able to run a terminal by code system("/home/salman/find_location/start_yarp.sh"); But on the next line i have ...
2
votes
0answers
52 views

Debugging kernel running on AMD target from Intel host - how to return control to gdb?

I have compiled kernel 3.13.0-55 on Ubuntu on both AMD and Intel machines. I tried to copy compiled kernel to Intel target but it won't boot with that one. Therefore I have compiled the same version ...