Hi Gurus,
I want to create a perl module that uses a shared library (that I wrote).
In order to use this *.so (that by the way is working fine with another exe) in my pm, I changed the *pm file.
that *.pm file was created using
h2xs -AXc -n NewModule.
so after my change the pm file (lib/cNewModule.pm) contains the following declaration :
use Inline CPP => Config => LIBS => "-L/users/nirf/perlTrials/cNewModule/lib/ -lmain";
in the folder
/users/nirf/perlTrials/cNewModule/lib/
I have libmain.so.
(and I even tried to add this path into LD_LIBRARY_PATH to make things work)
However,when I test the module, the "make test" keeps telling me that it has undefined symbols. Meaning that it can't load/link libmain.so.
does any of you has any idea of what is wrong or what else should I check ?
Thanks, Nir
In reply to Inline CPP
by nirf1