C is a general-purpose programming language

learn more… | top users | synonyms

1
vote
1answer
25 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
0answers
19 views

C/C++ - HWInfo - libhd - Which libraries to link?

(This exact same question can also be found on Stack Overflow) I have gotten into libhd (included in hwinfo) since I need to get device information. I got into the documentation and tried this ...
0
votes
2answers
61 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
votes
0answers
41 views

13.04 seems a little too fresh [closed]

just after changing to 13.04 I start getting messages like /usr/include/c++/4.7/utility(70): catastrophic error: cannot open source file "bits/c++config.h" #include I guess 13.04 is just one step ...
0
votes
1answer
63 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 ...
1
vote
0answers
9 views

Editing the GtkNotebok's Default Popup Menu

I'd like to know if it's possible to append a menu item to the popup menu that appears by default on right-clicking a GtkNotebook's tab page. Thanks.
0
votes
1answer
62 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
35 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
63 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
0answers
27 views

Netbeans can't run, please!

thank you all for your support. I'm new to Ubuntu, I want to program in C / C + + from Netbeans, I've installed the package version 7.3 with JDK 1.7. Open up Netbeans, I think good programs and ...
0
votes
2answers
54 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> ...
1
vote
2answers
224 views

graphics.h, conio.h and dos.h not working in gcc

I am working on a project related to mouse programming. I am having a problem that graphics.h, conio.h and dos.h not working in gcc. I tried ...
0
votes
1answer
111 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 ...
2
votes
1answer
51 views

IDE similar to pelles c on ubuntu 12.10

I'm going to school for IT and computer engineering, I love Ubuntu and I love the IDE Pelles C but I can't seam to find an IDE that will do all that Pelles C does. Now I realize that I may need to ...
0
votes
1answer
142 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 ...
0
votes
0answers
20 views

reading data from IO port

I wrote the code to read data from PCI in C program: #include <stdio.h> #include <ctype.h> #include <stdlib.h> int main() { int y=0x0000; int p1; p1 = inw(0x0000); printf("\n y = ...
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
0answers
56 views

No Option for C Project in Eclipse after CDT installation

I have installed CDT plug-in for eclipse using "Install New Software" option but even after re-starting eclipse I do not get any option to create a new C/C++ project. I read that I need to run the ...
0
votes
0answers
28 views

Building the Project at Eclipse IDE

I wrote a code to control a servo. But in order to build that I was using the terminal with a simple makefile. But now I decided to build my code at Eclipse IDE. However I could not figure out how. ...
0
votes
0answers
61 views

Writing a C program in order to removing occurrance from a text file including a symbol [closed]

I have a text file with a pattern like : 1,2,3$ 2,4,1,5,6$ 3,1,2,9$ 1,0,9,8,7,3$ 3,8,2,9$ . . . . and I have a char new[]="3,1,2,9$" I need a C-function in order to check if the text ...
0
votes
0answers
87 views

Netstat and ps commands for client/server socket programming

i made client server program with fork ,without using signal handler because i want to see the status zombie for parent server,but when i excute "ps" command i didn't see anything for server or ...
0
votes
5answers
171 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
64 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
0answers
112 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 ...
4
votes
0answers
171 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
105 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
0answers
76 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
56 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 ...
1
vote
2answers
113 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
1answer
88 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 ...
2
votes
2answers
151 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
109 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
224 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
114 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 ...
1
vote
0answers
117 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
1answer
185 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
87 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
96 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
54 views

Saving alias permanently by a C program

The following changes for alias are only maintained during the code runtime and goes off when the terminal prompt comes again. system("alias listing='ls'"); Is there any way around to reflect the ...
0
votes
0answers
55 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 ...
4
votes
1answer
581 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 ...
5
votes
1answer
98 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
0answers
31 views

Debian Packaging a C Program

Hye, I have made a simple C program. I went through the entire "ubuntu-packaging-guide Documentation". Followed all the steps and managed to make a debian package without any error and warning as ...
1
vote
2answers
74 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

How to create a Boot Loader in C for Ubuntu [closed]

I am new to C and Linux. I want to create a boot loader in C which would start my Ubuntu, but before starting Ubuntu it is supposed to write a few text line on the screen then start Ubuntu. I don't ...
-1
votes
1answer
65 views

Help with coding a C web filtering program on Ubuntu [closed]

I am new to Ubuntu. I have a school project to program a web filtering program in the C language. Basically the program should monitor the users web traffic and block websites that the admin has ...
0
votes
1answer
110 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
90 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
199 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
1k 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 ...

1 2 3