Page 1 of 1

How to use PBSoImporter?

Posted: Mon Sep 30, 2019 7:19 pm
by swhite
Hi
I have an external Linux shared object that I want to use in PureBasic. So I followed the instructions and created an SO definition file called vpe.pbl and then used the pbsoimporter and selected the vpe.pbl. When the pbsoimporter finished it had created a vpe.imp file in the purebasic/purelibraries/linux/ folder.

Now I want to use this shared object in a PureBasic application but I am not sure how this is done. Can someone explain how to use the imported so?

Thanks,
Simon

Re: How to use PBSoImporter?

Posted: Mon Sep 30, 2019 7:50 pm
by swhite
Hi

When I try to use a function in the shared library I get a compiler error saying:

Line 1: VpeGetVersion_() is not a function, array, list, map or macro.

Simon