Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Where does the interpreter look for include libraries?

interpreter Libraries look
0
Posted

Where does the interpreter look for include libraries?

0

Include libraries with absolut path (an absolute path starts with a forward slash) are only searched at the specified place. All other include libraries are searched in several directories. This is done according to a list of library directories (a library search path). The directories of the list are checked one after another for the requested include file. As soon as the include file is found the search is stopped and the file is included. The following directories are in the list of library directories: • The directory of the interpreted program. E.g.: When the program “/home/abc/test/pairs.sd7” is interpreted the directory “/home/abc/test” is in the list of library directories. • The directory containing the predefined Seed7 include libraries. This directory is hardcoded in the interpreter (an absolute path like “/directory_where_Seed7_was_installed/seed7/lib”). The hardcoded library directory is determined when the interpreter is compiled. So it only exists when the interpreter wa

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123