llancet has asked for the wisdom of the Perl Monks concerning the following question:
I'm writing an module with XS. On the last step of linking every thing together, the linker failed:
But the cairo library is out there. I manually run the link command, it runs successful.cc -shared -L/usr/local/lib -fstack-protector -o blib/arch/auto/GenoEy +e/GenoEye.so buildtmp/GenoEye.o -lcairo /usr/bin/ld: cannot find -lcairo collect2: error: ld returned 1 exit status
Why it failed in perl build script? I use Module::Build::WithXSpp and a Build.PL.$ cc -shared -L/usr/local/lib -fstack-protector -o blib/arch/auto/Geno +Eye/GenoEye.so buildtmp/GenoEye.o -lcairo $ ls blib/arch/auto/GenoEye/ GenoEye.bs GenoEye.so
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Failed to link while building XS code
by syphilis (Archbishop) on Jan 06, 2014 at 13:58 UTC | |
by llancet (Friar) on Jan 07, 2014 at 01:12 UTC |
Back to
Seekers of Perl Wisdom