bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-apl] The function is_pad collides with similarly named function in


From: Elias Mårtenson
Subject: [Bug-apl] The function is_pad collides with similarly named function in ncurses
Date: Sun, 1 Dec 2013 12:45:16 +0800

GNU APL defines a function called is_pad() which collides with a function of the same name in ncurses. This causes the following compile error:

make[1]: Entering directory `/home/elias/src/apl/src'
g++ -DLOCALEDIR=\"/home/elias/src/apl/dist/share/locale\" -DHAVE_CONFIG_H -I. -I..    -rdynamic  -DSYSCONFDIR=\"/home/elias/src/apl/dist/etc\" -g -O2 -MT apl-Output.o -MD -MP -MF .deps/apl-Output.Tpo -c -o apl-Output.o `test -f 'Output.cc' || echo './'`Output.cc
g++ -DLOCALEDIR=\"/home/elias/src/apl/dist/share/locale\" -DHAVE_CONFIG_H -I. -I..    -rdynamic  -DSYSCONFDIR=\"/home/elias/src/apl/dist/etc\" -g -O2 -MT apl-PrintBuffer.o -MD -MP -MF .deps/apl-PrintBuffer.Tpo -c -o apl-PrintBuffer.o `test -f 'PrintBuffer.cc' || echo './'`PrintBuffer.cc
In file included from Output.cc:21:0:
Common.hh:99:28: error: expected ‘)’ before ‘uni’
 inline bool is_pad(Unicode uni)
                            ^
Common.hh:99:28: error: expected ‘)’ before ‘uni’
make[1]: *** [apl-Output.o] Error 1
make[1]: *** Waiting for unfinished jobs....
mv -f .deps/apl-PrintBuffer.Tpo .deps/apl-PrintBuffer.Po
make[1]: Leaving directory `/home/elias/src/apl/src'
make: *** [all-recursive] Error 1

Renaming the function to something else fixes the issue.

Regards,
Elias

reply via email to

[Prev in Thread] Current Thread [Next in Thread]