Problem compiling: contains no objects
There is a "v2x.asn" file like below.
===================================================================================
V2X DEFINITIONS AUTOMATIC TAGS::= BEGIN
CommTxPDU ::= SEQUENCE { index INTEGER (1..2147483647), payload OCTET STRING }
CommRxPDU ::= SEQUENCE { psid INTEGER (0..270549119), payload OCTET STRING }
V2X-MESSAGE ::= CLASS { &id OBJECT IDENTIFIER, &MessageBody }
Message V2X-MESSAGE ::= { {&id {1 0 15784 1 0 1}, &MessageBody SEQUENCE OF CommTxPDU} | {&id {1 0 15784 1 0 2}, &MessageBody SEQUENCE OF CommRxPDU} }
EndApplicationMessage ::= SEQUENCE { endApplication-Message-id V2X-MESSAGE.&id ({Message}), endApplication-Message-msg V2X-MESSAGE.&MessageBody ({Message}{@endApplication-Message-id}) } END
===================================================================================
When I run compile, the following error occurs.
===================================================================================
./asn1c -S ./share/asn1c -D ./src -fcompound-names -fincludes-quoted -fline-refs -fwide-types -gen-autotools -pdu=EndApplicationMessage v2x.asn
FATAL: Information Object Set Message contains no objects at line 18 FATAL: Cannot compile "EndApplicationMessage" (20:1) at line 25 FATAL: Cannot compile "EndApplicationMessage" (20:1) at line 25
===================================================================================
The cause of the error is adding "({Message})" and "({Message}{@endApplication-Message-id})". However, I am unable to delete the part or request modification. First, it has been determined based on specification(standard) and is already being used by other companies. Another reason is that the syntex check shows no problems, and compilation proceeds well with other compilers (Obj-system). And, we've already done so much with the asn1c compiler. Thank you to everyone who helps. The share folder is attached. share.zip