Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I fix errors compiling asn_grammar.y/asn_grammar.cxx?

compiling errors Fix
0
Posted

How do I fix errors compiling asn_grammar.y/asn_grammar.cxx?

0

On some platforms, compiling the ASNParser results in errors like this: In file included from /pwlib/include/ptlib/contain.h:782, from /pwlib/include/ptlib.h:146, from asn_grammar.y:77: /pwlib/include/ptlib/contain.inl: In constructor `PAbstractList::PAbstractList()’: /pwlib/include/ptlib/contain.inl:428: warning: right-hand operand of comma has no effect asn_grammar: In function `int yyparse()’: asn_grammar:5045: error: expected primary-expression before “__attribute__” asn_grammar:5045: error: expected `;’ before “__attribute__” asn_grammar:5040: warning: label `yyerrlab1′ defined but not used These errors are probably due some flag differences in the bison pre-processor, but the solution is very simple. Simply upgrade your code to at least the last Janus release version (as of 1 Nov 2004, this was Janus patch 4) because that version (and all subsequent versions) no longer require the ASN parser to be compiled. See 4.21 for more information 4.27 – When I compile pwlib I get warnings

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123