mouse07410 / asn1c

The ASN.1 Compiler
http://lionet.info/asn1c/
BSD 2-Clause "Simplified" License
101 stars 73 forks source link

Where is ATS_ALIGNED_BASIC_PER? #72

Closed gatopeich closed 3 years ago

gatopeich commented 3 years ago

Trying to encode to APER but there is no option for it in asn_transfer_syntax enum.

I tried all sort of "-gen-xxx" flags and recompiled vlm_master at several points in the history to no avail.

I see a lot of per_type_encoder_f instances in headers ending in ..._aper, and they disappear when compiling with "-no-gen-APER".

Note: Compiling with -fcompound-names flag

mouse07410 commented 3 years ago

First, with the current vlm_master you don't need any -gen-XXX flags. Now every codec is generated unless a flag is given to disable some.

The define you're looking for is in asn_application.h

gatopeich commented 3 years ago

The issue was with an old asn_application.h left under /usr/local/share/asn1c by a previous install.