C is a general-purpose programming language

learn more… | top users | synonyms

0
votes
1answer
41 views

Mpi file not recognized?

I am trying to compile some mpi files on Ubuntu I installed the library using this code sudo apt-get install libcr-dev mpich2 mpich2-doc and tried to compile this simple hello world program /* C ...
0
votes
1answer
92 views

My ubuntu can't kill the process which occupy too much memory?

When I tested it, my computer tried it best to provide the most memory to my program.. And my computer crashed.. But I remembered that ubuntu will kill this process if it needs too much memory ...
0
votes
3answers
269 views

How to view the list of c library functions?

I'm a newbie in Linux programming. I found that the way to view the list of system calls in Linux via command-line is: man syscalls But now I want to view the list of c library functions, how can I ...
1
vote
1answer
1k views

How to build GUI application in C language using GTK+?

I have written code in C language using GTK. This code gives a window with 2 buttons, but I do not know how to make the standalone GUI application from this code. Please explain to me step by step ...
0
votes
1answer
38 views

How to know if socket server is working

I am creating a socket server using c, but the client will be an arduino board so i would like to know if there is a way to be testing my code without the client since the arduino is yet to arrive.
1
vote
1answer
2k views

Clang Error “stddef.h file not found”?

After upgrading to Saucy, Clang now gives me the error message: clang -Wall -Werror -std=c99 -ggdb -O0 5.1.c -o 5.1 In file included from 5.1.c:1: /usr/include/stdio.h:33:11: fatal error: 'stddef.h' ...
1
vote
0answers
156 views

How to build and run Concorde and Traveling Salesman Problem? [closed]

I need to use a library that is called Concorde to solve a well known problem called Traveling Salesman Problem. This library is available here I've downloaded and compiled it resulting in two main ...
0
votes
2answers
72 views

Header files in Anjuta [closed]

What is used instead of header in anjuta for a simple C program to give an output? I am new to programming and only used turbo c previously. Thanks in advance.
0
votes
2answers
2k views

how to play audio file using c++ in linux

I am coding this c++ program .I want to play audio clip, format dosen't matter , its just I wrote hello word the most basic program of any language but the thing is instead of showing hello world on ...
0
votes
1answer
126 views

Why does my computer show multiple terminals open Ubuntu 13.10

I am running a c program that records the number of terminals open and then lists them but when I run it I am shown multiple terminal windows open when only the one is, why?
0
votes
0answers
41 views

C compiling issue : fatal error: conio.h: No such file or directory [duplicate]

When I compile a c program it show : gcc gr.c gr.c:1:18: fatal error: conio.h: No such file or directory compilation terminated.
2
votes
0answers
165 views

How to control mouse cursor using c?

As in windows there is a function setCursorPos in windows.h for controlling cursor position. What is the way to do this in ubuntu?
2
votes
1answer
1k views

Why Ubuntu uses eglibc instead of glibc?

I checked for the libc version on my Ubuntu 64bit 12.10 machine by issuing the command ldd --version. I saw that Ubuntu uses eglibc instead of glibc. As egiblc is for embedded machines, Is there a ...
0
votes
1answer
165 views

why do i get fwrite error while saving the data to a binary file?

have written a c program where packets are received from the network and saves it in a binary file called 'sniff_data.bin'. But during the compilation i am getting error as 'too few arguments to ...
1
vote
1answer
302 views

how to open a program generated binary file?

i have implemented a c program where raw packets are received from the network and saved in a binary file. Thing is i cant open that binary file. i tried opening it using terminal,but i am getting ...
0
votes
1answer
884 views

C printf not working on ubuntu 13.10 terminal

I'm new in ubuntu so please bear with me. I need to create a C based program for a course in my university. I was using openSUSE as the OS and konsole as the terminal emulator when I was in the ...
0
votes
0answers
395 views

Blinking cursor when i try to install Ubuntu 13.10 from USB

Today i tried to install Ubuntu 13.10 from USB and when i restart and boot into USB a blinking cursor screen appears. I use the same USB to install windows 8 on my laptop and it works fine. I tried ...
-3
votes
1answer
171 views

Why doesn't my C program print the correct string? [closed]

I am writing a simple C program which reverses a string, taking the string from argv[1]. Here is the code: #include <stdio.h> #include <stdlib.h> #include <string.h> char* ...
0
votes
1answer
69 views

Changes to .o files after compiling

I have built a custom kernel and I am able to do my system call,but now I want to change the logic in the .o file reference in the Makefile obj-y += sys_calls_test.o the sys_calls_test.o has ...
1
vote
1answer
71 views

Code returns nothing

The following program was made according to the book 'Head First C'. It is supposed to be able to find and return music tracks containing a search-word, but it returns nothing. Oh, and I tried to make ...
0
votes
0answers
281 views

Eclipse(CDT) - cant find source at

I am an eclipse(CDT) and Ubuntu(13.04) user. I am working on a c project in Eclipse in Ubuntu. I ran my C project in my eclipse in Ubuntu. I faced no compilation errors, but I am not receiving the ...
2
votes
1answer
146 views

How to compile a program from launchpad

I tried looking through the documentation but I couldn't figure it out. make and ./configure don't work so I thought I would ask here. I'm trying to install this ( ...
0
votes
1answer
115 views

C, fork() process management [closed]

How to make grandchild1 internal function, and grandchild2 call external terminal command main() { if (fork()==0) //child { if (fork()==0) //grandchild1 { } ...
0
votes
0answers
225 views

Default IDE for C programming? [duplicate]

I am very much new to the Ubuntu OS. I write C programs for school and I usually do it on a Mac and use their default IDE xcode. I am just wondering if there is an IDE that comes with Ubunut 13.04? ...
1
vote
0answers
41 views

Customizing Linux kernel

I want to dive into creating custom linux kernels. I recently started using Ubuntu and I am impressed with the fact that I can customize the kernel to my own likings. I have been developing apps for ...
0
votes
1answer
40 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 ...
0
votes
0answers
9 views

Any message concurrency framework for c language in ubuntu

are there any message concurrency framework for c language? like https://code.google.com/p/retlang/
0
votes
1answer
6k 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
654 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 ...
0
votes
0answers
438 views

Installing Nvidia proprietary drivers breaks OpenGL compilation

When I install the Nvidia proprietary driver in Ubuntu 13.04 I can longer compile any OpenGL code written in c. I think the Nvidia drivers breaks or replaces the symlinks in the /usr/lib/ directory ...
0
votes
0answers
23 views

Get display as byte from the ubuntu 12.04

I have ubuntu 12.04 LTS. Which file do i need to access to get the screen display in terms of bytes so that I can manipulate and store it as a video file. I want to access it via C and possibly ...
2
votes
1answer
116 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
169 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
514 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
577 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
117 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). ...
0
votes
0answers
559 views

Make file for creating shared library with multiple sources

I am having the makefile which will create a shared library for limited number of sources, FLAGS := -fPIC -O3 -g -Wall -Werror CC := gcc MAJOR := 0 MINOR := 1 NAME := foo VERSION := $(MAJOR).$(MINOR) ...
0
votes
0answers
69 views

How to find properties and its values of sub-window of a window using xprop

A window can have many sub-windows with in it's area and some not visible. Now using xprop when i click where on a window i get the same output. But a window can have many windows in it(I mean ...
1
vote
3answers
506 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 ...
0
votes
0answers
115 views

Install c client couchbase library on ubuntu 13.04

I'm trying to install couchbase on ubuntu 13.04. So far ok, but when i try to install the C Client Library I can't find any. Can anyone help me out on how to install the client library on ubuntu ...
2
votes
1answer
3k 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
3k 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
700 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
424 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
806 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
19 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 :- ...
-1
votes
1answer
7k 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
680 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> ...
0
votes
0answers
41 views

how to check Video is coming in linux using c programming?

i have connected a easycap video cpaturing device to my system running Linux. i need to check the video in using a c application . the application must able to detect when the video is not coming ...
1
vote
0answers
97 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 ...