apron icon indicating copy to clipboard operation
apron copied to clipboard

Move headers in a subdirectory

Open arthaud opened this issue 6 years ago • 2 comments

Running sudo make install creates many files in /usr/include. Some of them have the ap_ prefix which is perfectly fine. However, some of them have very generic names (box.h, num.h) that could easily clash with other libraries.

I would suggest to create an apron directory in /usr/include and put all the headers there. You could then remove the ap_ prefix for some headers.

Users could then simply #include <apron/xxx.h>.

Thanks!

arthaud avatar Aug 19 '19 18:08 arthaud

That would be nice indeed. However, I don't know how to do this and not break existing code... Any idea on this ? Note that, if you install through opam (for OCaml), you're in luck as it will install in a package-specific location...

antoinemine avatar Oct 22 '19 15:10 antoinemine

Indeed, this would be a breaking change..

arthaud avatar Oct 22 '19 16:10 arthaud