I have installed the osmocom asn1c compiler, the aper-prefix
branch, to obtain an implementation of the TCAP protocol.
I have used the respective script to compile the ".asn" files.
The C files are generated successfully, but when compiling the obtained C code, an error is raised, which is related to this line of code:
#include <EXTERNAL.h>
In fact, the file EXTERNAL.h is missing (seemingly, the EXTERNAL type is not supported by this compiler). Is anyone aware of this problem and a possible solution?
You have several options:
Use a newer version of asn1c from this PR (still not merged)
Copy the EXTERNAL.h from the osmocom repository
Rename
EXTERNAL
toEXTERNALt
in all asn files and add the following in the asn files that has EXTERNALt.Or add it in a separate asn file and import where needed.