I am trying to generate C code for the GSM-TCAP asn1 files obtained from libosmo-asn1-TCAP. I have installed the osmocom libasnc1 compiler (tried both master and aper-prefix branches) and run this code:
asn1c -fcompound-names -gen-PER
DialoguePDUs.asn
tcap.asn
TCAPMessages.asn
TC-Notation-Extensions.asn
UnidialoguePDUs.asn
However, the compiler reports the following syntax error:
ASN.1 grammar parse error near line 86 (token "returnResult"): syntax error,
unexpected TOK_identifier Cannot parse "TCAPMessages.asn"
Does anyone know the root of this problem, and how to resolve it?