# gcc -O2 -I/usr/local/lib/perl5/5.8.0/sun4-solaris/CORE textedit.c \> -L/usr/local/lib/perl5/5.8.0/sun4-solaris/CORE \> /usr/local/lib/perl5/5.8.0/sun4-solaris/auto/DynaLoader/DynaLoader.a \> -lperl -lsocket -lm -o textedit
Example 1: GCC command-line options for compiling a Perl script.