The order of the input files on the command-line may be important. Files containing global compiler directives (e.g., asn1dflt files) should be placed before all ASN.1 input files. Additionally, files that contain definitions referenced by other files should be placed first (left to right) on the command line. For example, if the file myModules.asn references macro definitions inmacro.asn, you would invoke the compiler as:
prompt%> asn1 macro.asn myModules.asn
Note that the last ASN.1 file specified on the command-line has a special role. The name of this file determines the default name-prefix of the output file.
Additionally, if neither the -root command-line option nor the global OSS.ROOT directive is specified, then the last (or only) module in the rightmost ASN.1 input file is taken as the central ASN.1 module in the specification. In such a case, only this last module has PDUs generated for it into the output files.
Definitions from other ASN.1 files are only included if they are referenced from within this last module.
The samples included with some of the Knowledge Center answers are meant for your general understanding of the OSS products. Different versions of the products might produce slightly different outputs. Consult the products documentation and samples for the most up-to-date products information and code examples.
Test drive the OSS Nokalva ASN.1, LTE, and XML Tools now! Your trial includes complete software, documentation, sample programs, free 24x7 technical support and more.
Our expert personnel can help you learn ASN.1!
We offer 4-day ASN.1 courses at our headquarters or your premises.