Putting the Codes into Gear

This section provides information on how to compile the generated code using gcc.

Download ASN.1 C Runtime Package

The ASN.1 C Runtime Library Package are made up of a c runtime library and a set of include header files. Click here to download the latest ASN.1 C Runtime Package for Windows (Cygwin gcc).

Instructions on Compiling Generated Codes

Follow these instructions (Replace test with your desired target executable file name):

  1. Download the package to any desired directory.
  2. Uncompress the package to the same directory as the generated codes.
  3. Compile the generated codes together with the header files:
    $ gcc -c *.c
  4. Link .o file with the runtime library:
    $ gcc -o test *.o -L. -lasnrt
  5. If no error message, run it:
    $ ./test