I am trying to compile a simple ASN to C++ format:
RectangleTest DEFINITIONS ::=
BEGIN
Rectangle ::= SEQUENCE {
height INTEGER,
width INTEGER
}
END
However, when I compile, I get the following output:
/* Rectangle */
typedef struct Rectangle {
long height;
long width;
/* Context for parsing across buffer boundaries */
asn_struct_ctx_t _asn_ctx;
} Rectangle_t;
I specified INTEGER data type and instead I get "long". I would like to have C++ "int" instead.
I am using this open source compiler:
I already tried with -fwide-types
option but it does not solve my problem.