C is a general-purpose programming language

learn more… | top users | synonyms

0
votes
1answer
48 views

Is it possible to define a macro variable through make?

Below is my c code: #include main() { #ifdef HELLO printf(" hello "); #else printf(" else "); #endif } And my Makefiles is: all: gcc uss_main.c -o out ...
1
vote
1answer
14k views

Can Ubuntu provide an IDE for C, C++ programming? [duplicate]

I am a beginner in the field of programming. I have tried to learn C and C++ on a Windows 7 computer using the Turbo C++ compiler, but faced frequent failures and finally my laptop's motherboard ...
-1
votes
3answers
840 views

How can I execute c programs in ubuntu 13.04

I upgraded my ubuntu to 13.04 version. After this upgrade I am not able to execute c programs in terminal. When I try to execute, it shows an error as shown below bash: ./cd: Permission denied ...
2
votes
1answer
136 views

Help with running C programs in Ubuntu

I've been teaching myself to write programs in C, using Geany as my IDE. All of my programs get compiled and linked correctly, and they seem to work fine when I test run them inside of the IDE, ...
1
vote
1answer
319 views

I get compiling error using ROHC and libpcap library [closed]

I am using Ubuntu 12.10 32-bit.In my project I am using ROHC and libpcap library. when I run simple pcap program like- #include <stdio.h> #include <pcap.h> int main(int argc, char ...
1
vote
0answers
713 views

Firefox won't work. Locale not supported by C library

I just got a server running with ubuntu on it for the first time, I connect with ssh. I am a mac user, learning ubuntu. The idea is to automate some tasks on the server. One of these tasks involves ...
-1
votes
2answers
898 views

Subtracting two strings in C [closed]

Well , I was actually looking at strcmp() , was confused about its working . Anyways I wrote this code #include<stdio.h> main() { char a[5]="ggod"; char ...
2
votes
1answer
232 views

Is it possible to develop an app for Ubuntu with C (not C++)?

I just want to know if i can write GUI apps for Ubuntu using C--again, not C++. It's just that I hate having to learn a new language entirely (I know that they are similar in some ways but still). ...
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
1k 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
24k 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
149 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
139 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
813 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
77 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
620 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
101 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
610 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
417 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
434 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?
1
vote
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
5k 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
3k 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
206 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
776 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
2k 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
1k 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
423 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
435 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
342 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. */ # ...