[Scilab-users] How to link a static library

Shamika Mohanan shamika.i.nair at gmail.com
Mon Nov 6 06:22:20 CET 2017


Hello,

I'm building a toolbox where I have to link a static library (.a file).

I'm able to build the toolbox using *exec builder.sce*.

I have the following line in the .start file

*link(lib_path + "/liboctave.a");*

When I load the toolbox using *exec loader.sce*, I get the error

*link: The shared archive was not loaded: liboctave.a: invalid ELF header*

If I change it to* link(lib_path + "/liboctave");*, I get the error *:
cannot open shared object file: No such file or directory*

How do I use link() to link a static library in the .start file?

Regards,
Shamika
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20171106/1025b6ef/attachment.htm>


More information about the users mailing list