C is a general-purpose programming language

learn more… | top users | synonyms

1
vote
3answers
1k views

Any IDE's in Ubuntu for Windows Development with C Sharp?

I'm wondering if you folks could steer me toward some Window's Dev IDE tools for ASP.Net and or C Sharp? Is there a good site for finding IDE's for Ubuntu? I've not totally installed yet, just looked ...
2
votes
1answer
8k views

Is there any library similar to <conio.h>?

I used the IDE DEV C++ to compile C programs on Windows and I used the libraries and , but now I use Ubuntu and downloaded the Codeblocks, but it does not have these libraries. I just wanted to use ...
1
vote
2answers
6k views

Installing C compiler, JDK etc. in Ubuntu [closed]

I am a new to Ubuntu. I have used Windows before, but I am not able to install new software in Ubuntu from the offline setup files, so I don't know how to install software in Ubuntu. Please tell me ...
0
votes
1answer
2k views

File formats with gcc

I wrote some c code in a file and saved it with gedit. I then opened the terminal and tried compiling it with gcc but it gives me an error that it does not recognize the format of my c file. What ...
1
vote
1answer
952 views

Unable to install CBLAS on Ubuntu (x-post from StackOverflow)

I am trying to install CBLAS on Ubuntu, and am, as far as I can see, following the instructions in the README file that came in the folder. When I do a 'make all', I get the following errors that I ...
0
votes
2answers
1k views

Is Ubuntu suitable for an embedded system? [closed]

I am a beginner. I've heard a lot about Ubuntu, so I want to know if it's the perfect OS for me. I will be using it to learn embedded Linux and programming microcontrollers in C. Can I go with Ubuntu? ...
1
vote
0answers
21 views

unable to use static variable in c program [duplicate]

I am working on the some system calls.. I want to open the file by system call open() somewhere in my code I used, static char message[] = "Hello, world"; but it is giving the error error :- ...
0
votes
1answer
23k views

How to compile a C program that uses math.h?

I am having problems in math.h header file and when I use square root function as in sqrt(d). But my compiler is not supporting this. Please advise me about this problem. My Ubuntu version is 2012.
1
vote
1answer
2k views

C graphics XCB error - ubuntu 12.04 [closed]

The below code gives me an output. But after 4 to 5 key presses, it crashes resulting in a core dump. Please help us ascertain the error and method to resolve this issue. #include <graphics.h> ...
1
vote
0answers
114 views

Printing on Yocto MiniDisplay on System Startup

I have developed a C application and I am also using a Yocto_MiniDisplay, which prints some messages from the application. I need to start the application on System Start up, so that on the display ...
1
vote
1answer
73 views

What are some Ubuntu projects to contribute?

I decided to take part upon developing Ubuntu applications although I am having trouble finding projects to contribute in C, C++, C# and Java at Launchpad (not necessarily Launchpad alone). Can you ...
1
vote
1answer
4k views

Modification of stack size by ulimit -s

When I type ulimit -s in terminal it shows 8192. Does it mean that in my C code I could only have local variable of 8192 bytes? I am confused which stack size. Does ulimit -s change when we modify ...
4
votes
2answers
148 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
133 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
779 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
76 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
603 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
95 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
1k 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
113 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
4k 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
592 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
399 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
419 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
2k 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
4k 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
194 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
755 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
154 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
996 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
395 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
429 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
335 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
730 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
642 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
16k 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
251 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
291 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
246 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
308 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 ...