Help for this page

Select Code to Download


  1. or download this
    swig -perl5 example.i
    gcc -c example.c example_wrap.c `perl -MExtUtils::Embed -e ccopts`
    ld -G example.o example_wrap.o -o example.so
    
  2. or download this
    gcc -c <ccflags> <optimize flags> <cccdlflags> "-I/path/to/perl/lib/CO
    +RE" module.c
    gcc <lddlflags> module.o -o module.so
    
  3. or download this
    gcc -c `perl -MConfig -e 'print join(" ", @Config{qw(ccflags optimize 
    +cccdlflags)}, "-I$Config{archlib}/CORE")'` example.c example_wrap.c
    gcc `perl -MConfig -e 'print @Config{qw(lddlflags)}'` example.o exampl
    +e_wrap.o -o example.so