perlcc

perlccを使って、perl scriptのバイナリを作ろうと思ったのですが、上手くいかないので、いろいろ調べたら、以下の情報にあたりました。
どうやら、こういうことのようで。

http://www.cygwin.com/ml/cygwin/2004-01/msg01228.html


RE: perlcc does not work on my cygwin-please help
From: "Rafael Kitover"
To:
Date: Tue, 27 Jan 2004 21:22:40 -0800
Subject: RE: perlcc does not work on my cygwin-please help



>-----Original Message-----
>From: cygwin-owner@cygwin.com cygwin-owner@cygwin.com] On Behalf Of
>Pinhas Krengel
>Sent: Tuesday, January 27, 2004 9:09 AM
>To: cygwin@cygwin.com
>Subject: perlcc does not work on my cygwin-please help
>
>perlcc does not work on my cygwin (win XP). I have tried to re-install
>cygwin, read the assorted documents but can not figure out what is wrong.
>It seems to be a very basic problem as it reports error of not finding some
>file that are installed in my perl package. For example perl.h is not found.
>The file is on my system at
>/lib/perl5/5.8.2/cygwin-thread-multi-64int/CORE/perl.h. A place where cygwin
>selected to install it.
>I use mingw as the gcc compiler. It was recommended to install it not under


The normal Cygwin perlcc works just fine.


perlcc creates a binary that is linked to the Perl DLL. The Perl DLL is linked
to Cygwin. What you are trying to do, that is making a non-cygwin binary that
links to a Cygwin dll, makes no sense. And of course, the mingw gcc will not
understand Cygwin paths.


Also, when you have Cygwin installed there's no real need to install mingw, you
can use gcc -mno-cygwin instead with the w32api package, which is pretty much
the same thing.


If you want to use perlcc to create binaries that don't depend on Cygwin, you
will have to compile a copy of Perl with mingw then use its perlcc.


You might be able to get away with using ExtUtils::FakeConfig with activeperl
and mingw if you don't want to use ActivePerl's perlcc which requires visual
studio.


This is all completely offtopic by the way.


--
Rafael

原油価格

ここ数日、原油価格に注目していたのですが、55ドル台まで上昇した後、50ドル台まで急落しました。
なにかあるのかと思っていたら、昨日、中国が利上げを発表しました。
もしかすると、転換点を迎えつつあるのかもしれませんね。
原油が50ドルを割り込んだら、トレンド転換を考えてよいかもしれません。

pp, perl2exe

perlccの代わりに、

などがあります。
ppは、CPANのPARモジュールに含まれています。ただし、perlccとほぼ同じ制限があります。
perl2exeは、DLして解凍すれば、すぐに使えます。ただし、evaluation versionでは、メッセージが出力されてしまいます。