<div dir="ltr"><div>Hello,</div><div><br></div><div>asn1ct can't build asn1 file which contain module with name that is not the basename of the file.</div><div><br></div><div>Steps to reproduce:</div><div><br></div><div>$ wget <a href="https://raw.githubusercontent.com/wireshark/wireshark/master/asn1/snmp/snmp.asn">https://raw.githubusercontent.com/wireshark/wireshark/master/asn1/snmp/snmp.asn</a></div><div>$ erlc snmp.asn</div><div><br></div><div>result:</div><div>snmp.erl:6: can't find include file "RFC1157-SNMP.hrl"</div><div><br></div><div>The reason is confusion between 'erlang module' and 'asn1 module'.</div><div>asn1ct generates a .erl and .hrl files with basenames same as the .asn file, but the code try to include the asn1module.hrl (which does not exist).</div><div><br></div><div>The code which generates the -include line is in lib/asn1/src/asn1ct_gen.erl:gen_head</div><div><br></div><div>Regards,</div><div>yannay</div></div>