This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Error Compile Ncmpcpp | global.h:50:9: error: â €˜timeval’ does not name a type


Hi,

On Wed, Mar 6, 2013 at 7:52 PM, Bowo Keren  wrote:
> I get a problem when compiling ncmpcpp the cygwin version 1.7.16when I
> am running "make" output like this
> FYI : ncmpcpp ver 0.5.5
>
> ----------------------------------------CUT
> HERE------------------------------------------------
> bowo@baw ~/ncmpcpp
> $ make
> make  all-recursive
> make[1]: Entering directory `/home/bowo/ncmpcpp'
> Making all in src
> make[2]: Entering directory `/home/bowo/ncmpcpp/src'
> g++ -DHAVE_CONFIG_H -I. -I..    -I/usr/include/taglib  -g -O2
> -fno-exceptions -MT browser.o -MD -MP -MF .deps/browser.Tpo -c -o
> browser.o browser.cpp
> In file included from browser.cpp:30:0:
> global.h:50:9: error: ‘timeval’ does not name a type
> Makefile:355: recipe for target `browser.o' failed
> make[2]: *** [browser.o] Error 1
> make[2]: Leaving directory `/home/bowo/ncmpcpp/src'
> Makefile:352: recipe for target `all-recursive' failed
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/bowo/ncmpcpp'
> Makefile:261: recipe for target `all' failed
> make: *** [all] Error 2
> -------------------------------------------CUT
> HERE------------------------------------------------
>
>
> how to fix this

My suggestion would be to upgrade to the latest ncmpcpp (0.5.10). I
was able to compile it straight out of the tarball.

Alternatively, chack that global.h includes <sys/time.h>  (it does in 0.5.10)

Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]