-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem compiling: contains no objects #171
Comments
The cause of error is (as I understand it) inability of the free compilers like I personally consider those additions an absolute abomination, but some standards are misguided enough to utilize them. As a result, you may be forced to use those commercial compilers - I don't have either time or skills to enhance |
Out of curiosity @JSKim-Ranix, which standard is this? |
It is a modification of the ISO 14827(DATEX-ASN) standard to suit C2X (Center to Everything) for C-ITS(Cooperative-Intelligent Transport Systems).
I have a question. |
@JSKim-Ranix, the |
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
v2x.asn.zip
The text was updated successfully, but these errors were encountered: