I'm having some issues turning asn1c's output into a library that I can use from other projects. I'm using the latest master (commit 4cc779) because 0.9.28 gave me some additional problems.
I really don't get it. I think I'm missing something important. Could you please enlighten me? Questions:
Is the -gen-autotools flag expected to be working? asn1c is spitting me the same converter-example.mk and Makefile.am.asn1convert files regardless of the flag's existence.
Why was ASN_MODULE_HEADERS removed in this commit? The autotools no longer install the headers without manual intervention. Is there some other way I'm supposed to get the declarations of the API from user code?
Is it possible to append a prefix to the expected #include locations? And if not, why?
For example:
#include<Rectangle.h>
Doesn't that pollute the global namespace? I mean, if I add to Makefile.am:
ASN_MODULEdir=$(includedir)/subdirectory
Then I have to compile somewhat like this:
gccmain.c-I/usr/local/include/subdirectory
Rather, wouldn't it be better if asn1c would allow the API to define some #include prefix:
#include<subdirectory/Rectangle.h>
Then I can compile cleanly, in addition to being able to define some other Rectangle.h for some other purpose:
gcc main.c
Last edit: Alberto Leiva Popper 2018-09-13
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
I'm having some issues turning asn1c's output into a library that I can use from other projects. I'm using the latest master (commit 4cc779) because 0.9.28 gave me some additional problems.
I really don't get it. I think I'm missing something important. Could you please enlighten me? Questions:
-gen-autotoolsflag expected to be working?asn1cis spitting me the sameconverter-example.mkandMakefile.am.asn1convertfiles regardless of the flag's existence.ASN_MODULE_HEADERSremoved in this commit? The autotools no longer install the headers without manual intervention. Is there some other way I'm supposed to get the declarations of the API from user code?#includelocations? And if not, why?For example:
Doesn't that pollute the global namespace? I mean, if I add to
Makefile.am:Then I have to compile somewhat like this:
Rather, wouldn't it be better if asn1c would allow the API to define some
#includeprefix:Then I can compile cleanly, in addition to being able to define some other
Rectangle.hfor some other purpose:Last edit: Alberto Leiva Popper 2018-09-13