
Generated C/C++ files and the -compat Option
ASN1C 5.6 and below did not generate separate files for common definitions, encode and decode functions (<moduleName>.c/.cpp, <moduleName>Enc.c/.cpp, <moduleName>Dec.c/.cpp). All code was generated in a single file with the name <moduleName>.c/.cpp. If it is necessary to maintain this behavior then use the -compat 5.6 option.
Also, the behavior of the -cfile option is slightly changed in ASN1C 5.7. In 5.6 and below, the -cfile option did not have any effect for files containing copy, print, compare, etc functions. For ASN1C 5.7 and above, -cfile causes everything to be output to one file (the exception is if specific filename parameters are specified with -genPrint, -genCopy, etc). Once again, to maintain the previous behavior the -compat 5.6 option can be used.
Objective Systems, Inc.102 Pickering Way, Suite #506Exton, Pennsylvania 19341 http://www.obj-sys.com Phone: (484) 875-9841 Toll-free: (877) 307-6855 (US only) Fax: (484) 875-9830 info@obj-sys.com |