Re: Synopsis - getting started

"Roman Yakovenko" <[email protected]> Sun, 6 May 2007 23:21:54 +0300
Newsgroups gmane.comp.documentation.synopsis
Message-ID <[email protected]>
On 5/6/07, Stefan Seefeld <[email protected]> wrote:
> Roman Yakovenko wrote:
> > Hi. I have small problem with using Cxx.Parser class. It seems that it
> > doesn't honor the additional include directories I specify. I guess I
> > have some error. Can you take a look on next script and to say what is
> > wrong with it?
> >
> > cxx = Cxx.Parser(
> >
> >            preprocess=True
> >
> >            , cppflags=['-I
> > /home/roman/language-binding/sources/pygccxml_dev/unittests/data' ] )
> >
> >
> >
> > ast = AST.AST()
> >
> > cxx.process( ast, input=['bit_fields.hpp'] )
> >
> >
> > If I pass full path to the file, the ast is built
>
> The input is looked for in the current working directory (if its
> path isn't absolute). The include search path is used when resolving
> include directives only.

Thanks, that is the information I was missing

> There are various examples in the source package (installed under <prefix>/share/doc)
> demonstrating the suggested usage of synopsis scripts, and in particular, how to bind
> certain fixed parameters from the script, and others (such as input) as arguments when
> the script is invoked.
>
> Regards,
>                 Stefan
>
> --
>
>       ...ich hab' noch einen Koffer in Berlin...
> _______________________________________________
> Synopsis-devel mailing list
> [email protected]
> http://lists.fresco.org/cgi-bin/listinfo/synopsis-devel
>


-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/