Questions tagged [c]

C is a general-purpose programming language

C (pronounced like the letter C) is a general-purpose computer programming language

496 questions
124
votes
8 answers

fatal error: sys/cdefs.h: No such file or directory|

It has been weeks that I am trying to use Code::Blocks IDE on Ubuntu 14.04 LTS to program Atmega16, however I am hindered by the following error while compiling/building the program in C::B /usr/include/features.h|374|fatal error: sys/cdefs.h: No…
Mandar
  • 1,361
83
votes
1 answer

Installing curl.h library

Could you help me install curl.h library?
neilmarion
82
votes
2 answers

How do I write a Unity system indicator in Python?

Background: This is NOT for application-indicators but system-indicators. Picture from: https://wiki.ubuntu.com/DesktopExperienceTeam/ApplicationIndicators The objective is to show indicator-sysmonitor in Greeter/Lock/Ubiquity screens. There is a…
user.dz
  • 49,176
61
votes
1 answer

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 See 'config.log' for more details What do I…
39
votes
2 answers

How to develop a System Indicator for Unity?

This is not a duplicate of How to create Unity indicators?. I'm looking for system indicator not application indicator. Backgound: From these two questions: How do I add or manipulate Application/System Indicators in the login screen? How to make…
user.dz
  • 49,176
31
votes
2 answers

What provides curses headers named curses.h?

I need a few header file namely curses.h for text based programming Please tell me how to install these header files.
coder
  • 3,691
28
votes
2 answers

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.
shreya
  • 333
25
votes
6 answers

Source code formatter/indenter

I'm using Ubuntu 12.04. I do not have any root or sudo privileges as this is a company machine. Is there, in a normal installation of Ubuntu 12.04, any terminal program that I can use to turn ugly malformed source code that lacks any indentation…
user9993
  • 389
21
votes
5 answers

Where does Ubuntu store its library files?

I want to add my own library to use in c compiling, but don't really know where ubuntu stores it.
david25
  • 2,227
19
votes
5 answers

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

I'm a beginner and I'm new to Ubuntu. I just installed it and want to run a C program. I have no idea what platform to use or where to write the code. I need to use the pthread.h header file in the program. Can anyone help me?
19
votes
3 answers

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 confused with the use of it. One of the directory…
batman
  • 8,071
19
votes
3 answers

My program cannot run with "command not found" error

I just switched from Windows to Ubuntu 11.10. I wrote the following code in C with the text editor and saved it as HelloWorld.c in Documents. #include int main() { printf("Hello World!\n"); return 0; } And I started the Terminal…
yihangho
  • 301
18
votes
3 answers

Valgrind does debug error

I have been trying to follow the online tutorial for Learn C The Hard Way. However after setting up valgrind (I followed other links that help setting up valgrind on ubuntu 12.04), when I try to debug the c executable, I find the following…
Ayusman
  • 411
16
votes
3 answers

What is EOF and how to trigger it?

This is my C source code. When I build it in Ubuntu, it starts to get characters but I don't know how to end the program, as it does not end by inputting ENTER or a carriage return. What does EOF mean? How can I trigger it? This source is also on a…
16
votes
1 answer

How do I add a slider to an AppIndicator?

I'm trying to add a slider to an AppIndicator similar to what the Sound Menu has. I've looked trough the code of the Sound Menu and found that I should be using libido-0.1 for that. Here's what I have so far and all I see is a '-' symbol in the…
kicsyromy
  • 790
1
2 3
33 34