Hello!<br><br>I have some problem with ASN1.<br><br>- I have this ASN1 definition in the Test.asn file:<br><br>Test DEFINITIONS IMPLICIT TAGS ::=<br><br>BEGIN<br>EXPORTS Test;<br><br>Test ::= SEQUENCE<br>{<br> a INTEGER,<br>
b INTEGER DEFAULT 0<br>}<br> <br>END<br><br>- I am using this comand: <br><br>erl -eval asn1ct:compile(\"Test.asn\").<br><br>It works fine.<br><br>But when I add a "DEFAULT 0" clause to the line "a INTEGER," so it looks like this:<br>
<br> a INTEGER DEFAULT 0,<br><br>then asn1ct fails:<br><br>1> asn1error:7:'Test':'Test'<br>{asn1,{duplicates_of_the_tags,[{'UNIVERSAL','INTEGER'}]}}<br>1><br><br>Why please?<br><br>
- Release of Erlang 5.9/OTP R15B <br>- Windows 7 Prof 64-bit<br><br>
Sincerely,<br>Bob<br><br>----------------------------------------------------<br>Just for recap: Failing Test.asn looks like this:<br><br>Test DEFINITIONS IMPLICIT TAGS ::=<br><br>BEGIN<br>EXPORTS Test;<br><br>Test ::= SEQUENCE<br>
{<br> a INTEGER DEFAULT 0,<br> b INTEGER DEFAULT 0<br>}<br> <br>END<br><br><br><br>