May be your structures were defined in namespace? Or this may be some kind
of include guards fail.
General way to solve this: examine generated by bison code. If it would be
seem ok, you can produce preprocessed code from it by running your compiler
with special options ( -E for gcc). There you mus
2008/11/24 sgaurelius <[EMAIL PROTECTED]>
>
>
> Do you have any guide, on how to include a library to bison. I will search
> it by myseld, but if you got somehting, it'd be useful.
>
>
Maybe it would be worth to check also guides on your linker and compiler.
Official bison manual you can find here
What exactly say the compiler?
If you get some undefined reference message on stage of compilation of bison
output, then you must check if all needed definitions really included.
If you get undefined reference message on linking stage, the solution
usually is to add object file with implementation
Section 5.4 (Context dependent precedence) in the official manual (
http://www.gnu.org/software/bison/manual/html_mono/bison.html#Contextual-Precedence)
contains the answer:
Here is how %prec solves the problem of unary minus. First, declare a
precedence for a fictitious terminal symbol named UMIN