Questions tagged [c]

C is a general-purpose programming language

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

492 questions
123
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,351
  • 2
  • 9
  • 7
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
  • 47,137
  • 13
  • 140
  • 258
77
votes
1 answer

Installing curl.h library

Could you help me install curl.h library?
neilmarion
59
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…
Sovannarith
  • 693
  • 1
  • 5
  • 6
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
  • 47,137
  • 13
  • 140
  • 258
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,541
  • 9
  • 27
  • 33
26
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
  • 313
  • 1
  • 3
  • 4
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
  • 1
  • 3
  • 6
20
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,167
  • 8
  • 24
  • 29
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
  • 1
  • 2
  • 5
18
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?
user248075
  • 197
  • 1
  • 1
  • 3
18
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
  • 7,851
  • 18
  • 39
  • 38
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
  • 1
  • 3
  • 11
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…
stackprogramer
  • 313
  • 1
  • 2
  • 10
16
votes
5 answers

Where's my /usr/include/sys directory?

I recently upgraded from Kubuntu 12.04 to 13.04, a complete reinstall. Using gcc 4.7.3. I compiled some programs to discover there is no /usr/include/sys directory. That is, types.h, stat.h, etc, are absent. They exist in the include/linux…
Duck
  • 271
  • 1
  • 2
  • 5
1
2 3
32 33