|
From: | Don Ward |
Subject: | Re: [Discuss-gnuradio] Make fail...config.h:467: error: 'usleep'was not declared in this scope |
Date: | Fri, 2 Jan 2009 09:59:52 -0500 |
"Dan J" wrote:
Thanks for the input. The result of "fgrep -i sleep config.h" is: fgrep -i sleep config.h /* Define to 1 if you have the `nanosleep' function. */ /* #undef HAVE_NANOSLEEP */ /* Define to 1 if you have the `sleep' function. */ /* #undef HAVE_SLEEP */ /* Define to 1 if you have win32 Sleep */ #define HAVE_SSLEEP 1 /* Define to 1 if you have the `usleep' function. */ #define HAVE_USLEEP 1
This says that configure thinks you have a usleep() function somewhere. This is different from my MinGW installation.
#ifndef HAVE_USLEEP int usleep(unsigned long usec); /* SUSv2 */ #ifndef HAVE_NANOSLEEPstatic inline int nanosleep(const struct timespec *req, struct timespec *rem) { return usleep(req->tv_sec*1000000+req->tv_nsec/1000); }#if defined(HAVE_SSLEEP) && !defined(HAVE_SLEEP) /* TODO: what about SleepEx? */static inline unsigned int sleep (unsigned int nb_sec) { Sleep(nb_sec*1000); return 0; }1) I only installed MinGW yesterday and used MinGW-5.1.4.exe. 2) Using w32api3.11
Your installation is much newer than mine, but I think I am using the same w32api.
You need to find out where configure is finding usleep. Looking at config.log (search for "usleep") may help. You can also go to /mingw/include, /usr/include, /usr/local/include, etc. and try "fgrep usleep *.h", "fgrep usleep */*.h", "fgrep usleep */*/*.h", etc. to look for it. Then figure out why configure found it but your gnuradio compile didn't.
-- Don W.
[Prev in Thread] | Current Thread | [Next in Thread] |