memeco / osd-lyrics

Automatically exported from code.google.com/p/osd-lyrics
GNU General Public License v3.0
1 stars 0 forks source link

ol_singleton.c needs to include <inttypes.h> #301

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
请列出导致问题的操作
1. ./configure
2. make

What's the output in terminal (run with command `osd-lyrics -d debug')?
请给出在终端下运行的输出(使用“osd-lyrics -d
debug”来运行)
n/a

What's the player and which version you are using?
您使用的播放器是什么?它的版本号是多少?
n/a

What's version of OSD Lyrics?
OSD Lyrics的版本是多少?
0.4.3

What's your Linux distro?
您使用哪种发行版?
archlinux x86_64

the error is like this:

gcc -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I..  -pthread 
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 
-I/usr/include/libdrm -I/usr/include/libpng15 -I/usr/include/gdk-pixbuf-2.0 
-I/usr/include/libpng15 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz 
-I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/gio-unix-2.0/ 
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/dbus-1.0 
-I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
-I/usr/include/libmpd-1.0/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
-pthread -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng15 
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I../lib/chardetect/include 
-DDATADIR='"/usr/local/share"' -DICONDIR='"/usr/local/share/osdlyrics/icons"' 
-DGUIDIR='"/usr/local/share/osdlyrics"'   -g -O2 -MT ol_singleton.o -MD -MP -MF 
.deps/ol_singleton.Tpo -c -o ol_singleton.o ol_singleton.c
ol_singleton.c:34:1: error: unknown type name ‘int64_t’
 int64_t
 ^
make[3]: *** [ol_singleton.o] Error 1

adding #include <inttypes.h> in ol_singleton.c fixes this compilation error. i 
am not sure if this header file is portable among systems. the compiler i was 
using is gcc-multilib 4.8.0

Original issue reported on code.google.com by augu...@gmail.com on 22 Apr 2013 at 6:35

GoogleCodeExporter commented 8 years ago
我也遇到了,怎么没人来解决呢?

Original comment by kylinfed...@gmail.com on 3 Aug 2013 at 2:19

GoogleCodeExporter commented 8 years ago
#include<inttypes.h> is right.

Original comment by zhengyup...@gmail.com on 22 Nov 2013 at 4:43