RE: How to remove the dummy and see prev ?
Stefan Seefeld <[email protected]>
| Newsgroups | gmane.comp.documentation.synopsis |
|---|---|
| Message-ID | <20DCDD8F0FCED411AC4D001083CF504501AA9852@MTL-EXCHANGE> |
hi Serge, > From: Serge Iovleff [mailto:[email protected]] > $ python setup.py build > > > I have the following message error : > Grammar.hh not found > > but the build process does not stop and i could not retrieve > the whole line. ok, if everything builds fine my guess is that the error you see stems from the dependency generation which bails out on this file as it doesn't yet exist. It's pretty harmless, though it's a problem I ought to fix. > $synopsis -Wc,parser=C++ -Wp,-g -Wp,-b,../include/ > -Wp,-I../include/ -o ../doc/STK_Index.h.syn ../include/STK_Index.h [...] > Exception: Loading AST from '../include/STK_Index.h', > cPickle.UnpicklingError: invalid load key, '/'. > make[1]: *** [../doc/STK_Index.h.syn] Erreur 1 > make: *** [syn] Erreur 2 One of the things that changed after version 0.5 is the frontend used to instruct synopsis what to do (and how). The config file approach used before was replaced with a scripting interface, and the command line options to the 'synopsis' tool itself changed a little bit, too. Please have a look into the tutorial / the examples to see how to instruct synopsis to parse a C++ source file. The simplest way is via 'synopsis -p Cxx -o foo.h.syn foo.h'. See 'synopsis -h' for general help on options and 'synopsis -p Cxx -h' for Cxx parser specific help. However, for all non-trivial use you may consider using the scripting interface (i.e. write 'synopsis.py' driver scripts), as expressing all the parameters through command line arguments (i.e. strings !) doesn't scale very well. This is all documented in the tutorial, which, incomplete as it is, provides however a good starting point. HTH, Stefan