Help Center/ FunctionGraph/ Developer Guide/ Overview/ Referencing DLLs in Functions
Updated on 2024-11-11 GMT+08:00

Referencing DLLs in Functions

  • By default, the root directory and the lib folder in this directory have been configured in the LD_LIBRARY_PATH environment variable. You only need to add dynamic link libraries (DLLs) here.
  • You can directly modify the LD_LIBRARY_PATH variable in the code.
  • If the dependent .so file is stored in another directory, you can specify it when setting the LD_LIBRARY_PATH environment variable. For details, see Configuring Environment Variables.

    In the following example, /opt/function/code and /opt/function/code/lib indicate the project directories of the function code.

    Figure 1 Setting environment variables
  • If a library in a mounted file system is used, specify its directory in the LD_LIBRARY_PATH variable on the Configuration tab page.