Skip to content

Configuration errors on build and execution #1

Open
@akshgpt7

Description

@akshgpt7

Description

On Linux, the example gives errors on building and executing it.
On running the build command (gcc -std=c11 main.c -lmetacall), the following error occurs:

error while loading shared libraries: libmetacall.so: cannot open shared object file: No such file or directory

Adding the following link to the command fixes it:
g++ main.cpp -L/usr/local/lib -lmetacall

Then, on executing the binary using ./a.out, it fails to load the plot.py script.

To fix that, the path of the script needed to be changed to its absolute path inside main.c, where it's being loaded to MetaCall.
Also, to execute it, the following command had to be used: LD_LIBRARY_PATH=/usr/local/lib ./a.out.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions