vlm / asn1c

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

Is this library actually working? #481

Closed chetanpandey1266 closed 1 year ago

chetanpandey1266 commented 1 year ago

I tried the latest release of this library and followed the doc to generate the encoder and decoder for the Rectangle.asn but it is giving me a lot of errors :

image image

Then I also tried the master branch but I am not able to build the branch as it is giving: cannot find input file: 'tests/tests-c-compiler/check-src/Makefile.in'

chetanpandey1266 commented 1 year ago

If there are some other better alternatives please suggest

velichkov commented 1 year ago

Hi @chetanpandey1266,

Yes, it works. It does not support all modern ASN.1 features but for what it supports it works quite well.

Looks like you are compiling it with a c++ compiler (probably g++). You need to compile it with c compiler (gcc) as c++ is much stricter when it comes to casts from one type to another. You also need to install gcc header as you are missing sysexits.h header file.

chetanpandey1266 commented 1 year ago

Yeah I was using a cpp compiler. My bad