Phil Carmody on Sun, 12 Sep 2004 13:04:08 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Alpha C++ FTB |
g++ -c -fPIC -O3 -DGCC_INLINE -Wall -fomit-frame-pointer -I. -I../src/headers -o init.o ../src/language/init.c ../src/language/init.c: In function `long int TIMER(pari_timer*)': ../src/language/init.c:1909: error: `CLK_TCK' undeclared (first use this function) ../src/language/init.c:1909: error: (Each undeclared identifier is reported only once for each function it appears in.) make: *** [init.o] Error 1 Hmmmm, what's CLK_TCK... grepping around /usr/include: /* This is the obsolete POSIX.1-1988 name for the same constant. */ # if !defined __STRICT_ANSI__ && !defined __USE_XOPEN2K # ifndef CLK_TCK # define CLK_TCK CLOCKS_PER_SEC # endif # endif Hack, hack, hack, builds fine with CLOCKS_PER_SEC in gcc and g++. => possible patch, that admittedly might break weird and wonderful anachronistic compilers, of which I see no evidence in the build log list: <<< paricvs@megaspaz:~/pari/src/language$ cvs diff init.c Index: init.c =================================================================== RCS file: /home/megrez/cvsroot/pari/src/language/init.c,v retrieving revision 1.238 diff -c -r1.238 init.c *** init.c 8 Sep 2004 10:51:54 -0000 1.238 --- init.c 12 Sep 2004 10:19:14 -0000 *************** *** 1906,1912 **** TIMER(pari_timer *T) { struct tms t; times(&t); ! return _get_time(T, t.tms_utime, CLK_TCK); } #elif USE_GETRUSAGE --- 1906,1912 ---- TIMER(pari_timer *T) { struct tms t; times(&t); ! return _get_time(T, t.tms_utime, CLOCKS_PER_SEC); } #elif USE_GETRUSAGE >>> ===== When inserting a CD, hold down shift to stop the AutoRun feature In the Device Manager, disable the SbcpHid device. http://www.cs.princeton.edu/~jhalderm/cd3/ __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail