Re: Programs with Inline::C suddenly fail to compile
- From: "jl_post@xxxxxxxxxxx" <jl_post@xxxxxxxxxxx>
- Date: Thu, 14 Jan 2010 18:00:38 -0800 (PST)
On Jan 14, 5:41 pm, Ben Morrow <b...@xxxxxxxxxxxx> wrote:
Have you upgraded ExtUtils::MakeMaker in the meanwhile,
or any other toolchain modules?
No, I haven't, although since you mentioned it, I tried re-
installing it with:
cpan -fi ExtUtils::MakeMaker
but that didn't seem to change anything. I finally got it working,
though, with your next suggestion:
Well, you could always find a copy of dlltool
(I presume it's part of GNU binutils for Win32)
and put it in strawberry\c\bin.
I checked, and dlltool.exe was not in my GNU unix utilities for
Win32 (I'm not sure... is that the same as GNU binutils?). However, I
did a "find2perl" search on C:\ and eventually found dlltool.exe in C:
\Program Files\GCL-2.6.7-ANSI\mingw\mingw32\bin , so I copied it to C:
\strawberry\c\bin (the directory where gcc.exe resides).
This solved the problem! My Inline::C programs now compile.
Of course, I'm still puzzled as to why I could compile with no
problems last month and today I got errors relating to not finding
dlltool.exe . I don't recall ever installing mingw (perhaps
installing Strawberry Perl or Inline::C did it for me), but maybe the
mingw bin directory was in my path and somehow got removed recently.
Inline::C checksums your source
and skips the recompile if it's unchanged, so your old
script isn't getting recompiled at all. If you clear out
D:\tmp\_Inline you'll find the old script stops working
too (which is actually a step forward, even though it may
not seem like it).
Makes sense, as it would explain why there's multiple copies of
programs in the _Inline\lib\auto directory. This brings up the
question: If I modify the C code 20 times and run it after each
modification, will I have 20 cached programs in the _Inline
directory? Do the old cached programs ever go away, or do they
essentially stay around forever?
Anyway, thanks a million for your help, Ben.
-- Jean-Luc
.
- Follow-Ups:
- Re: Programs with Inline::C suddenly fail to compile
- From: sisyphus
- Re: Programs with Inline::C suddenly fail to compile
- From: Ben Morrow
- Re: Programs with Inline::C suddenly fail to compile
- References:
- Programs with Inline::C suddenly fail to compile
- From: jl_post@xxxxxxxxxxx
- Re: Programs with Inline::C suddenly fail to compile
- From: Ben Morrow
- Programs with Inline::C suddenly fail to compile
- Prev by Date: Re: Perl module to display MIME email in browser?
- Next by Date: Re: Programs with Inline::C suddenly fail to compile
- Previous by thread: Re: Programs with Inline::C suddenly fail to compile
- Next by thread: Re: Programs with Inline::C suddenly fail to compile
- Index(es):
Relevant Pages
|