in reply to [Linux][Perl 5.20.1] embedded perl in C application

I don't think you need to bootstrap Net::SMTP at all, because the bootstrap() function is only for XS code.

At least that is what I get from DynaLoader.

I think your program should be able to compile, at least if there is Net/SMTP.pm somewhere on the disk or you put a callback into @INC to supply the source code.

Replies are listed 'Best First'.
Re^2: [Linux][Perl 5.20.1] embedded perl in C application
by soundlord (Novice) on Apr 02, 2018 at 00:31 UTC
    You are right, I don't need to specify Net::STMP in the list at "-e xsinit -- -o xsinit.c -std"... I'm not confident with these techniques, I would try to find some documentation and books... the term "XS code" is completly unknown for me, and I have to dig deeper concerning the "dynamic loading" in Perl... Thank you for your help ^^

      See perlxs in perldoc for some (lots of) info.