C is a general-purpose programming language

learn more… | top users | synonyms

4
votes
2answers
145 views

Where to find GUI code

I've been rummaging through Unity's source code (Shell Interface) and I was a little curious about something; where in the code are you supposed to find positional code? I'll clarify a bit with some ...
0
votes
1answer
129 views

Error with building libreoffice 4.0.2.2 (in a virtual machine)

I tried to build libreoffice 4.0.2.2 on Ubuntu 13.04 x86-64 using VirtualBox. An error has occurred which says: no suitable windowing system found, exiting . Any ideas on how to solve this problem?
-1
votes
2answers
682 views

can't run a make file of a C program [closed]

I have a small a program that should start a 2nd Thread. the problem is that, when try to make an executable file of this program using make. I get : engine@ubuntu:~/Desktop/Lecture$ make thread ...
1
vote
1answer
75 views

Make works fine, but the result does not run. What now?

I am trying to run https://github.com/seanpringle/simpleswitcher on my ubuntu 12.04 I downloaded it and compiled it. However, when I run I get *** glibc detected *** ./simpleswitcher: free(): ...
2
votes
3answers
572 views

If statement in C isn't evaluating the conditions [closed]

Ok, so I'm new to Ubuntu and Linux OS. So far I'm loving it, specially the CLI. I also like programming but I'm a self learner, pretty new in this too. I wrote a small program using VIM and compiled ...
1
vote
0answers
88 views

Problem with compiling fft using gcc

I have downloaded the source codes of Splash2 from here and i tried to compile fft.c using gcc command on my own machine but i got this error : fft.c:62:28: fatal error: parmacs_config.h: No such ...
1
vote
1answer
940 views

BMP C library to open and save image

Can anyone recommend me a C library for loading and saving .bmp images. I need to load the image, edit some bits, and then save it. I have found the DevIl library, but I can't find the way to use it ...
0
votes
2answers
111 views

Ubuntu stores variables in the wrong order

So I had this exercise in my class where I had to tell which of the two addresses is bigger when I create two char's in a main function. Because local variables are stored in the stack that starts ...
1
vote
1answer
3k views

How to implement the MSG_DONTWAIT on a recv call

I am implementing a server simulation program and want to check if anything was received via a recv from a TCP/IP socket witout waiting. When I place the MSG_DONTWAIT flag, recv returns a length of -1 ...
0
votes
1answer
581 views

C++ Compiler Program IDE [duplicate]

I have just installed Ubuntu 12.10 on my old laptop and I want to start working on it. Is there any program like Visual Studio for Ubuntu 12.10?
1
vote
2answers
360 views

Connecting QML with C instead of C++?

I've been working on an app in Ubuntu, using C and GTK, I want to switch from GTK to QML, however I can not find anywhere on the internet info on linking QML to C functions, just C++. Is it even ...
0
votes
1answer
402 views

Does libc6-i386 compile 64-bit executables?

I have libc6-i386 installed on my 64-bit capable Intel i3 processor. Should I rather install the amd64-versions of libc or stick to the i386 as I have an Intel processor?
0
votes
2answers
1k views

libusb program not compiling

I am trying to compile a program that uses libusb library in Ubuntu 12.04. I have installed the libusb-1.0-0-dev. However when I try to compile a program as below:- #include<usb.h> ...
0
votes
1answer
4k views

Decrypting *.SO file [closed]

Situation: Long back i developed some coding in C and C++, by converting to *.SO file - i deleted those C and C++ files. Issue: I want to re-convert the *.SO files into C and C++ files for the code ...
0
votes
1answer
2k views

Diffrence between amd64 and i386 version of ubuntu

Can anyone one explain what is the difference between both the versions of Ubuntu? I installed 11.10 i386 and wrote some C code that worked fine in that platform but failed to work in 11.10 amd64 on ...
1
vote
0answers
14 views

curl/types.h file or directory not found [duplicate]

I have a cpp code to compile but while compiling it is showing the error of curl/types.h file or directory not found, compilation error, fatal error. I am using ubuntu 12.10. please help me to fix ...
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
179 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
3k 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
1k 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
689 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
152 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
2k 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 ...
1
vote
2answers
928 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
345 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 ...
0
votes
1answer
418 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
319 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
657 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
605 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
73 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
14k 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
244 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
273 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
229 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
284 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
468 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
8k 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
130 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
3k views

Netbeans for C++ (gcc 64bit)

How can I make Netbeans work with the GCC 64 bit compiler?
1
vote
1answer
445 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
438 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
106 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
5k 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
555 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 ...