Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: perl_free problem

by zentara (Archbishop)
on Mar 14, 2007 at 14:04 UTC ( #604814=note: print w/replies, xml ) Need Help??


in reply to Re^2: perl_free problem
in thread perl_free problem

2. I don't understand what it means, because I use cl compiler. cc -o perl-interp perl-interp.c `perl -MExtUtils::Embed -e ccopts -e ldopts`

The command-line arguments (as you call them ) are actually backticks and expand out into the needed includes and libs needed by your Perl version. On linux/unix style systems, it is done all the time, look at gtk's pkg-config system.

Anyways, on my system, the bacticks expand out to

-Wl,-E -L/usr/local/lib /usr/lib/perl5/5.8.8/i686-linux-thread-multi/ +auto/DynaLoader/DynaLoader.a -L/usr/lib/perl5/5.8.8/i686-linux-thread +-multi/CORE -lperl -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthrea +d -lc -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -fno-strict-aliasing - +pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_ +SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl5/5.8.8/i686-linux-thre +ad-multi/CORE
As you can see, using the backticks, is far easier than manually trying to find all those system-specific file locations.

And sorry, I don't use windows, so I'm as lost as you as far as win32 goes.


I'm not really a human, but I play one on earth. Cogito ergo sum a bum

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://604814]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2021-03-08 20:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (127 votes). Check out past polls.

    Notices?