Re: fails to compile with undefined symbol (FP_PLUS_INF)
От | Seneca Cunningham |
---|---|
Тема | Re: fails to compile with undefined symbol (FP_PLUS_INF) |
Дата | |
Msg-id | 4419912A.1070903@ca.afilias.info обсуждение исходный текст |
Ответ на | Re: fails to compile with undefined symbol (FP_PLUS_INF) ("Riccardo Mottola" <multix@gmail.com>) |
Ответы |
Re: fails to compile with undefined symbol (FP_PLUS_INF)
|
Список | pgsql-ports |
Riccardo Mottola wrote: > our faithful grep tool says: > bash-2.01$ grep FP_PLUS_INF * > float.h:#define FP_PLUS_INF 4 > bash-2.01$ grep FP_MINUS_INF * > float.h:#define FP_MINUS_INF 5 Is there a float.h in your gcc install directory? Is it #included instead of /usr/include/float.h by gcc? My faithful grep tool says: -bash-2.05b$ grep FP_MINUS_INF /usr/include/* /usr/include/float.h:#define FP_MINUS_INF 5 /usr/include/math.h:#define FP_MINUS_INF 5 The float.h that's part of gcc doesn't contain the defines. > On 3/16/06, Seneca Cunningham <scunning@ca.afilias.info> wrote: >> Riccardo Mottola wrote: >>> gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline >>> -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing >>> -I../../src/port -DFRONTEND -I../../src/include -I/usr/local/include >>> -c isinf.c -o isinf.o >>> isinf.c: In function `isinf': >>> isinf.c:69: error: `FP_PLUS_INF' undeclared (first use in this function) >>> isinf.c:69: error: (Each undeclared identifier is reported only once >>> isinf.c:69: error: for each function it appears in.) >>> isinf.c:71: error: `FP_MINUS_INF' undeclared (first use in this function) >>> make[2]: *** [isinf.o] Error 1 >> Are FP_PLUS_INF and FP_MINUS_INF defined in float.h or math.h? The >> oldest docs that I found were for AIX 4.3 and what I could gather from >> them is that the code should compile. -- Seneca Cunningham scunning@ca.afilias.info
В списке pgsql-ports по дате отправления: