in reply to Re^3: shared-obj linking in xs-module
in thread shared-obj linking in xs-module

Thank you, for your suggestion. It functions very well, but the problem is that you have collected all obj-files in the sh-obj file. My posted code is just a short example, but in the real case I have many sh-obj files, and some of these could be proprietary one, in this case I have only sh-obj files.

What I can do, in this generic case?

Replies are listed 'Best First'.
Re^5: shared-obj linking in xs-module
by rafl (Friar) on Mar 16, 2006 at 14:32 UTC

    Exactly what I did in the code example I posted. Linking the generated shared object against the libraries. In that example that libraries are also external (not proprietary, though) and I don't have built them myself. I built my code with the headers that are provided with those libraries and then link against their shared objects, which are more than one as well.

    Cheers, Flo

      Ok Cheers, but how con you do if you have only shared-objects? In C it would not be a problem.

        You mean only shared-objects without header files?

        It'll work the same way as in C, so as almost everything concerning XS works the sam way as in C as it actually only is preprocessed C code that links against a library called libperl, which is written in C as well.

        Flo