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

Re: compier limit exceeded !!!



On Mon, 12 Oct 1998 08:44:45 CDT, Sid Takkella wrote: 
>I am sure there has to be fix for this as people have compiled before on HP-UX 10.20 (i hope)
>
>CC:embedded-tcl.cc: line 1: compiler limit exceeded: lexical token too long.
>
>Can some one tell me what the fix is. Thank you

embedded-tcl.cc contains tcl code as one long string.  Some compilers
(like yours) can't handle strings that are so long.
Work arounds:

- install gcc

- rebuild tcl2c++ with TCL2C_INT defined, then regenerate
embedded-tcl.cc with the new tcl2c++ (by deleting it and typing make
after putting the new tcl2c++ in your path)

You can try this patch to tcl2c++.c out if you want.  If it doesn't
work, please suggest the right #ifdef for HPUX 10.20:

Index: tcl2c++.c
===================================================================
RCS file: /usr/src/mash/repository/common/Tcl/tcl2c++.c,v
retrieving revision 1.8
diff -u -r1.8 tcl2c++.c
--- tcl2c++.c   1998/10/08 18:12:55     1.8
+++ tcl2c++.c   1998/10/12 16:40:27
@@ -30,7 +30,10 @@
 #define strcasecmp _stricmp
 #endif
 
-#if defined(WIN32) || defined(__alpha__)
+/*
+ * Define TCL2C_INT if your compiler has problems with long strings.
+ */
+#if defined(WIN32) || defined(__alpha__) || defined(__hpux)
 #define TCL2C_INT
 #endif


   -John Heidemann