|more useful options|
Re^2: Extending perl with C dynamic library.by Martin90 (Sexton)
|on Aug 19, 2013 at 09:53 UTC||Need Help??|
syphilis, thanks that helped and .so are smaller ;)
spx2 thanks for good resource !
Unfortunately I encountered another problem, this time when I try to add perl compiler to C.
On windows this code fail:"Dmake error code 129, while making \/patch_here/Example.dll" "A problem was encountered while attepting to compile and install your inline c code. The command that failed was dmake."
On Linux (CentOS 6) program compile successfully but problem appears in next step:
cc -o Example.o -c Example.c `perl -MExtUtils::Embed -e ccopts`
returns:"Example.xs:4:20: error: INLINE.h: No such file or directory Example.c: In function âXS_main_mainâ: Example.c:55: warning: initialization makes pointer from integer without a cast"
Because Inline produce their own .o file I try to compile their .o file, again with no success:
cc -o Example Example.o `perl -MExtUtils::Embed -e ldopts`
return:"Example.o: In function `XS_main_main': /home/admin/Embed/_Inline/build/Example/Example.c:55: undefined reference to `XS_unpack_charPtrPtr' collect2: ld returned 1 exit status"
I have no idea what is wrong here, looking for your help again monks ;)Also, it is possible to implement full perl subroutine code to C code or just add pointer that refer to perl subroutine somewhere else ?