bebbo / amiga-gcc

The GNU C-Compiler with Binutils and other useful tools for cross development for Amiga
GNU General Public License v2.0
319 stars 66 forks source link

Question: Optional libraries... possible? #388

Closed anchor76 closed 7 months ago

anchor76 commented 7 months ago

Hello,

Not an issue, but question: Is it possible to use a library optionally? I would like to use picasso96API.library optionally. So if it's not installed, just skip it, and use intuition + graphics libraries. As i see if a referenced lib is unable to open, the app is not starting. (failing with openlibrary() error at startup)

Is there any compile option for this?

Thanks :)

bebbo commented 7 months ago

You have to open that library by yourself. To disable the auto opening for a library, define and initialize that library in your code:

struct Library *P96Base = 0;

Then open/close it yourself and use it, if available.

anchor76 commented 7 months ago

Thanks for your quick response :)