C is a general-purpose programming language

learn more… | top users | synonyms

0
votes
5answers
3k views

Installing C - programming software

I have just installed Ubuntu 12.10, and I am new using Linux. What software do I need to install to do C-programming? I am looking for a compiler and libraries. I'm not only new in Linux, but also in ...
-2
votes
2answers
154 views

Is there any C/C++ Runtime Enviorment for Ubuntu?

I am a C/C++ developer. I would like to run my .exe programs on my computer (which only has Ubuntu on it). I would like to know if there are any C/C++ Runtime Enviroments out there.
0
votes
2answers
2k views

Programming Opengl ES in Ubuntu

I want to program somthing using opengl es , i search software center for anything related and i found libgles1-mesa-dev , then i wrote a simple main program and included : #include ...
5
votes
1answer
963 views

Where is the documentation for programming OpenGL ES for Ubuntu Touch?

How can I program an OpenGL ES program for Ubuntu Touch? I have installed QtCreator and the Ubuntu SDK, but I can't seem to find any documentation about this topic.
1
vote
1answer
584 views

Where can I find a Simple Hello World example for Ubuntu SDK (QT)?

I've been trying to get a simple window with button. And i have no idea on how to "bind" a button from the QML thing to a C/C++ function for example. I followed the example from developer.ubuntu.com ...
1
vote
1answer
150 views

Cannot receive UPower signals

I am newbie in dbus, so please be patient with me. I have a following code: http://pastebin.com/8zpM7Pwb. It is some sample I found and changed to suit my case. General idea is to 'trap' dbus ...
1
vote
1answer
1k views

Virtual installation: where to find the ISO

I'm running windows 7 on my computer (64-bit) and I need to install Ubuntu 12.10 (kernel: 3.5.0-17-generic) virtually. I've installed VirtualBox from Oracle but I can't find the iso image for this ...
2
votes
2answers
1k views

gcc Unable to exec gcc.real: No such file or directory

./configure checking for gcc... gcc checking whether the C compiler works... no configure: error: in `/home/mob/freeglut-2.8.0': configure: error: C compiler cannot create executables See ...
0
votes
2answers
832 views

bash and c - 2 processes in concurrency to write a file

I made a C program, it forks 2 processes and each one of them uses system() to call 2 scripts (script1.sh and script2.sh), what I want to do is let them write in a file (output.txt) in parallel ...
3
votes
2answers
292 views

Is there any ubuntu API?

in Windows, a programmer can use Windows API to write a Windows application. Windows API can be used with C (not necessarily C++). In Windows API you have a message loop and you have to program ...
1
vote
0answers
350 views

Can't compile a GTK+ program, errors in GTK-files

for years ago I downloaded GTK+-dev. Now I would create a programm with GTK+. Simply startet with the example on http://developer.gnome.org/gtk3/stable/gtk-getting-started.html, I get lots of ...
0
votes
1answer
399 views

How to run code on Android Tablet from Ubuntu connected via USB?

I am trying to run a C code on an Android tablet from my computer which has Ubuntu 12.04. But when I run the application on android the tablet is not getting detected. Please help me as to what to ...
2
votes
1answer
280 views

Why does compiling C code on Xubuntu fail?

I recently did a fresh OS reinstall - switched from openSUSE to Xubuntu. I had backed up all my scientific data post-processing scripts (written in C or in FORTRAN). Code I had recently used and ...
2
votes
1answer
1k views

gtk-builder-convert Error

I am doing the tutorial in the link http://www.micahcarrick.com/gtk-glade-tutorial-part-1.html When I run the gtk-builder-convert tutorial.glade tutorial.xml I get the following error Traceback ...
0
votes
2answers
1k views

Compiling C programs on Ubuntu 12.04

I'm an absolute beginner at writing programs in C, and I'm having difficulty compiling a simple program. Here's my code: /* This code is a .c file that prints out the words hello, world. */ # ...
2
votes
1answer
565 views

How to see the intermediate code on compilation of a C program?

I want to see the intermediate code generated during the compilation of a C program. Using the -S flag, the object code is generated but is there anything to see the .i files, called as intermediate ...
0
votes
2answers
551 views

Looking for IDE compiler to build and run a .c source file without creating a project

I have ubuntu 12.04 and KDE. I already know Code::BLocks that does the job, but I have a problem with it: any version of it (12.11 or 10.05) I use doesn't close when I click the close button and if i ...
0
votes
0answers
72 views

Is there a C/C++ compiler for Ubuntu? [duplicate]

Possible Duplicate: Can I use a C/C++ compiler? Is there a good C/C++ compiler out there for Ubuntu? I'm going to be learning C soon and would like to know if I should just use windows for ...
10
votes
1answer
12k views

No acceptable C compiler found in $PATH

I want to install one package named speech_tools-2.1-release.tar.gz. After I run command ./configure in this package, it show me a message: Configure: error: no acceptable C compiler found in $PATH ...
6
votes
1answer
232 views

Set action for submenu in AppIndicator

I am trying to build a simple indicator in C. This is my code: void make_indicator(){ //Making the indicator appindicator = app_indicator_new("My Indicator", ...
1
vote
2answers
246 views

how to reverse the lower case characters in word using only sed

Reverse every word of a line using sed Description ----------- The job to do is reversing every word of a line. that a word is a sequence of lowercase alphabets Raw Input ...
0
votes
1answer
207 views

Can't Compile A Simple C Program

I installed the last version of Ubuntu. I tried to compile and run simple c program. I was get error: fatal error: stdio: No such file or directory I installed and updated gcc compiler few times, ...
0
votes
1answer
228 views

Problems compiling Library

I am having some difficulties compiling some files that I downloaded (for academic purposes). I ran the following command : cd tmp/Detri_2.6.a/detri then make detri_new CC=gcc To build a ...
2
votes
0answers
443 views

Building & running C program in Eclipse Juno in 12.04

I have recently installed Ubuntu and Eclipse to compile a library (written by someone else). I am familiar with C and thus I added all the relevant header files in a a folder and added the path to ...
2
votes
1answer
6k views

GCC compiler errors with “No such file or directory”

My Ubuntu version is 12.04 LTS. I have written some C programs. But there is a compiler-problem. I've googled and found that I need build-essential. So I download and installed it. After ...
0
votes
1answer
128 views

c programming using school server

I connect to my school server using the terminal. I try to run my main.c on their computer. but I do not know how to do it. Should I copy the files to my school and then run or something else ? ...
-1
votes
2answers
2k views

Netbeans for C++ (gcc 64bit)

How can I make Netbeans work with the GCC 64 bit compiler?
0
votes
1answer
415 views

C programming on Ubuntu

I have problems related to C programming on Ubuntu 12.04. While compiling C program consisting pow I faced difficulties. Then I searched the Internet and got the solution with -lm. But that's the ...
0
votes
3answers
2k views

Error linking standard header file in gcc

I've a simple code - this works on other platforms but does not work in ubuntu. #include <stdio.h> #include <stdlib.h> int main() { int x=99; char str[100]; itoa(99, str, 10); return 0; } ...
-1
votes
2answers
1k views

To write a batch processing script which runs on bash

How to convert your java program so that it runs as a batch program i.e it can be run like a command in the ubuntu or any linux machine. What is the procedure and what are the steps to follow? ...
2
votes
3answers
1k views

What is the write-mode policy that is used in Ubuntu?

Is there anyway to see whether Ubuntu uses write through or write back policy? I know that write back is much better, but when I write a program in C to test the cache, it appears that Ubuntu uses ...
0
votes
2answers
414 views

GUI and C coding gtk files?

I am trying to write a program in C and I need the gtk/gtk.h file, which I both currently don't appear to have nor am I sure how to get it. When I compile all I get is cannot find the file, how can ...
3
votes
1answer
95 views

wait() weird behavior in Ubuntu

I wrote the following program and executed in terminal. But I am confused that the program isn't displaying the results as wait behavior is described on internet. I copied this code from a book. ...
3
votes
3answers
4k views

What is the use of /usr/include directory?

I'm very new to Ubuntu. I'm looking at the directory /usr/include it contains lot of header files. I know they have specified certain constants and other information that are used in Ubuntu. I'm ...
4
votes
1answer
509 views

Configurating man page to work like “man xxx”

I made a application in C. I wrote a manpage for this program and it's called something like edit.1. I "compiled" groff -man -Tascii edit.1 | less Now I can start it like man ./edit.1 from the ...
4
votes
1answer
308 views

What are these files in my /dev directory?

I know that most devices are presented in the /dev directory, but only now have I actually noticed two very strange, yet familiar names in there... I'm talking about stdin@ and stdout@ down there: ...
2
votes
4answers
2k views

.exe file created by C programming through gcc compiler isn't executing

I am using Ubuntu 12.04 on my desktop and Ubuntu 11.04 on laptop. I am writing c program which contains math. I am creating executable file through the command: gcc -o filename.exe filename.c -lm ...
0
votes
1answer
705 views

Unable to use “graphics.h” header file in 12.04

I am new to Ubuntu and I need to write some graphics programs in C which uses the header file graphics.h , but I am not being able to run any of my code without that header file, which is not present ...
0
votes
4answers
2k views

How do I enable a Buffer Overflow?

I just installed 12.04 (WUBI actually) and I wanted to learn a bit about buffer overflow. Unfortunately when I try to use a function like puts() and gets() in an incorrect manner (that is, to cause a ...
0
votes
1answer
239 views

How can I make this evhz.c file to run properly?

I'm really new at linux. I just installed Ubuntu 12.04- I compiled and tried to run a program but it doesn't work and I don't have a clue why. searched on google but no one seems to have a problem ...
1
vote
2answers
1k views

C program runs well in Windows but when run on Ubuntu it is not asking for string?

My simple code for getting info from user & print the same works fine with Windows OS (on Dev C++) but But its not asking for string when run on Ubuntu (tried Terminal/Dev C++ via WINE/Code ...
4
votes
1answer
136 views

Implementation of a slider on appindicator

I'm trying to add a slider to an indicator to port my gnome-shell extension to unity. I found out this question which is exactly my problem. If this is not possible using libido and indicator how is ...
2
votes
1answer
94 views

Can i reasonably link in C code to an application managed with quickly?

I'm looking around for a way to program some gui apps in ubuntu 12.04. I ran across the quickly tutorial and the tool looks fantastic. It looks like the primary language you develop with is python, ...
-1
votes
2answers
6k views

What is the Best Way for Using & practicing C language in Ubuntu 12.04? [closed]

I want to learn C language . and i would like to know how i can practice on C language by using Ubuntu 12.04 And is there any platform for it and how to get it ? or learn it by Terminal and how to ...
0
votes
1answer
318 views

Undefined reference to gdk function

I have a gtk program in which I am trying to call a gdk function. I have the following include files: #include <gtk/gtk.h> #include <gdk/gdk.h> and am compiling with the following: gcc ...
1
vote
1answer
2k views

How to overcome “Permission denied” running C program even after “chmod +x”?

After compiling a C program on Ubuntu 10.10, after executing chmod +x ./a.out, I am still getting bash: ./a.out: Permission denied. How can I run my new executable?
1
vote
1answer
133 views

GTK+ Custom Accelarator Groups

I have successfully manage to add an accelerator to a menu item with the gtk_widget_add_accelerator() function. What bothers me is how i can add a custom accelerator that widget.With the first ...
0
votes
1answer
108 views

Development environment for Linux wireless using sparse

I am used to Eclipse and Visual studio for development for Java and C#. I am looking forward to modify and compile some files in C in the Linux Wireless subsystem. The site recommends using Sparse but ...
8
votes
1answer
8k views

How to make Eclipse CDT's Linux GCC toolchain resolve C++ standard library headers?

In Ubuntu 12.04 LTS I installed the Eclipse CDT plugin and opened the new hello world project to just test everything out. When I was creating the project, I chose the only toolchain: "Linux GCC" ...
9
votes
2answers
8k views

Valgrind does debug error

I have been trying to follow the online tutorial for Learn C The Hard Way. However after setting up valgrind (I followed other links that help setting up valgrind on ubuntu 12.04), when I try to ...