On Tuesday 23 July 2002 14:47, Jean-Marc Lasgouttes wrote: > > I guess > wc -l `find src/ -name \*.[Cch]` > is good enough. We do not want to count libsigc++ or boost as ours. Of > course this counts also the gnome/qt2 frontends for recent versions, > but the impact is IMO not very important > All files in src: 169042 > Only gnome: 2532 > Only qt2: 16749 > and for reference, only xforms: 27302 > > This allows to see how advanced the different frontends are :)
True. In a certain sense the layout files are also code. But, ok let us KISS. :-) > JMarc Status of compilation until now: * The 1.0.x compiled ok, with x=0..4 * I get this errors for 1.1.2 (the next in stable series): make[3]: Entering directory `/home/jamatos/lyx/lyx-1.1.2/src/support' g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I./../ -I/usr/X11R6/include -g -O2 -fno-exceptions -fno-rtti -c filetools.C filetools.C: In function `bool PutEnv (const string &)': filetools.C:322: cannot convert `const char *' to `char *' for argument `1' to `putenv (char *)' make[3]: *** [filetools.o] Error 1 g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I./../ -I/usr/X11R6/include -g -O2 -fno-exceptions -fno-rtti -c lstrings.C lstrings.C: In function `bool prefixIs (const string &, const char *)': lstrings.C:118: no matching function for call to `basic_string<char, string_char_traits<char>, __default_alloc_template<true, 0> >::compare (int, unsigned int &, const char *&, unsigned int &) const' /usr/include/g++-3/std/bastring.cc:398: candidates are: int basic_string<charT, traits, Allocator>::compare (const basic_string<charT, traits, Allocator> &, unsigned int = 0, unsigned int = basic_string<charT, traits, Allocator>::npos) const [with charT = char, traits = string_char_traits<char>, Allocator = __default_alloc_template<true, 0>] /usr/include/g++-3/std/bastring.cc:417: int basic_string<charT, traits, Allocator>::compare (const charT *, unsigned int, unsigned int) const [with charT = char, traits = string_char_traits<char>, Allocator = __default_alloc_template<true, 0>] /usr/include/g++-3/std/bastring.h:404: int basic_string<charT, traits, Allocator>::compare (const charT *, unsigned int = 0) const [with charT = char, traits = string_char_traits<char>, Allocator = __default_alloc_template<true, 0>] lstrings.C:119: Unable to find a register to spill in class `AREG'. lstrings.C:119: confused by earlier errors, bailing out The function in question is: 112 bool prefixIs(string const & a, char const * pre) 113 { 114 unsigned int l = strlen(pre); 115 if (l > a.length() || a.empty()) 116 return false; 117 else 118 return a.compare(0, l, pre, l) == 0; 119 } Those are the only one. Any hint? -- José Abílio