Hello I am using this compiler with a c++ proyect and I am having compatibility problems. The problem is that the byte definition is done in std. This is the fail:
/usr/include/c++/9/cstddef:69:14: note: candidates are: ‘enum class std::byte’
69 | enum class byte : unsigned char {};
I solve it by changing the definitions of some files, I change the name of the byte definition to asn_byte. The files are:
-
asn1crt.h:
line 75 : uint8_t byte;
line 129: byte *buf
line 147: byte *buf
line 181: int GetCharIndex(char ch, byte allowedCharSet[], int setLen);
-
LangGeneric_c.fs:
**line 295:**GenericLocalVariable {GenericLocalVariable.name = "arr"; varType = "byte"; arrSize = Some sReqBytesForUperEncoding; isStatic = true; initExp = None}
-
Header_c.stg
line 161: byte arr[];
line 184: byte arr[];
I guess this asn compiler is not intended for c++ but I hope you can make it compatible as well.
Hello I am using this compiler with a c++ proyect and I am having compatibility problems. The problem is that the byte definition is done in std. This is the fail:
/usr/include/c++/9/cstddef:69:14: note: candidates are: ‘enum class std::byte’
69 | enum class byte : unsigned char {};
I solve it by changing the definitions of some files, I change the name of the byte definition to asn_byte. The files are:
asn1crt.h:
line 75 : uint8_t byte;
line 129: byte *buf
line 147: byte *buf
line 181: int GetCharIndex(char ch, byte allowedCharSet[], int setLen);
LangGeneric_c.fs:
**line 295:**GenericLocalVariable {GenericLocalVariable.name = "arr"; varType = "byte"; arrSize = Some sReqBytesForUperEncoding; isStatic = true; initExp = None}
Header_c.stg
line 161: byte arr[];
line 184: byte arr[];
I guess this asn compiler is not intended for c++ but I hope you can make it compatible as well.