Tag Info

New answers tagged

0

You're suffering from this bug in GDM. The Debian package 3.12.2-4 has a fix. Looking at the GDM changelog for Ubuntu 14.04, it doesn't look like the fix was backported to 14.04, nor can I find a Launchpad bug report. So either: Use another signal (only SIGUSR1 was affected), or Use another Display Manager (such as lightdm), or Upgrade GDM (perhaps using ...


0

From LCTHW: "You could install Valgrind with the package manager for your OS, but I want you to learn to install things from source" Try a newer version of Valgrind, e.g. 3.10.1


2

If you are referring to the sys/msg.h header file specifically, then it should be provided by the libc6-dev development package First make sure that the package is installed, either via the Software Center application or from a terminal using sudo apt-get install libc6-dev after which you should be able to browse the header file at ...


0

The sqlite program and the library has not linked this might have caused the issue. In this case please try the below, g++ mail.cpp -lsqlite3


1

As a general rule for input in C, it usually works in lines -- that is, it is buffered. That means that anything you type is not actually sent to the program until Enter is pressed. So, for the first program, it is simply waiting (also called "blocking") at the getchar() request until a line of data comes in. Therefore, it doesn't actually see anything ...


1

$ gcc -Wall -pedantic -o hw hw-no-return.c hw-no-return.c:1:1: warning: C++ style comments are not allowed in ISO C90 [enabled by default] // 'Hello World!' program ^ hw-no-return.c:1:1: warning: (this will be reported only once per input file) [enabled by default] hw-no-return.c:5:1: warning: return type defaults to ‘int’ [-Wreturn-type] main() ^ ...


0

I've made a MP3 player all in C for my Raspberry Pi. I followed instructions from here: http://hzqtc.github.io/2012/05/play-mp3-with-libmpg123-and-libao.html This will only play mp3 files atm, but I plan on adding OGG playback as well.


1

C The string library is the file string.h, so: #include "string.h" Example: #include "string.h" #include "stdio.h" void main(){ char src[2] = "Hi"; char dest[2]; strcpy(dest, src); printf("%s\n", dest); // Will print Hi }


4

#include <string> is a C++ directive. Rename your file to kai.cpp And compile it with g++ kai.cpp -o kai



Top 50 recent answers are included