X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=README;h=15e173c6c6c70f2fd4ed4bae70a735871c043a20;hb=7e4f879b32dc94638e0530e9261817da3e69002c;hp=9f99cf173aa643fd43b8a37a09378861fba42e5e;hpb=5a83b7cfbe04badf89f4f814c5657e3531538978;p=p5sagit%2FDevel-Size.git diff --git a/README b/README index 9f99cf1..15e173c 100644 --- a/README +++ b/README @@ -12,7 +12,7 @@ Devel::Size - Perl extension for finding the memory usage of Perl variables my $other_size = size(\@foo); my $foo = {a => [1, 2, 3], - b => {a => [1, 3, 4]} + b => {a => [1, 3, 4]} }; my $total_size = total_size($foo); @@ -25,35 +25,42 @@ accurately as possible. To build and install this module, you need: - Perl - a working C or C++ compiler - a make (or namke on Windows) utility + Perl + a working C or C++ compiler + a make (or namke on Windows) utility Follow these steps: On Linux, Cygwin, or Unix: - perl Makefile.PL - make - make test - sudo make install + perl Makefile.PL + make + make test + sudo make install + +On most systems, it is necessary to link to libstdc++. On such systems, +libstdc++ should be found automatically (by default). +If libstdc++ is *not* being found automatically (in which case you'll get +link errors),then instead of running 'perl Makefile.PL', you'll need to run: + + perl Makefile.pl LIBS="-L/path/to/libstdc++ -lstdc++" On Windows: - perl Makefile.PL - nmake - nmake test - nmake install + perl Makefile.PL + nmake + nmake test + nmake install =head1 BUGREPORTS Please report bugs to: - http://rt.cpan.org/NoAuth/Bugs.html?Dist=Devel-Size + http://rt.cpan.org/NoAuth/Bugs.html?Dist=Devel-Size =head1 COPYRIGHT -Copyright (C) 2005 Dan Sugalski, Copyright (C) 2007 Tels +Copyright (C) 2005 Dan Sugalski, Copyright (C) 2007-2008 Tels This module is free software; you can redistribute it and/or modify it under the same terms as Perl v5.8.8.