in reply to Re^3: Cross-Compile Perl Modules for Win x64
in thread Cross-Compile Perl Modules for Win x64

As far as I'm aware, 32-bit programs still work well on 64bit incarnations of Windows, so you could try moving everything down to 32-bit Perl. I haven't looked into it, so I'm unaware of any immediate problem of Win32::API on 64-bit Windows. But I know it uses some assembly language to achieve the call between Perl / C and the operating system, so that part might get tripped up by the registers changing size.

  • Comment on Re^4: Cross-Compile Perl Modules for Win x64

Replies are listed 'Best First'.
Re^5: Cross-Compile Perl Modules for Win x64
by jand (Friar) on Dec 30, 2008 at 20:03 UTC
    Win32::API doesn't build in 64-bit mode. You can use 32-bit Perl just fine on 64-bit Windows, but you need to be aware that you are running inside the WOW64 (Windows on Windows64) environment, which will redirect parts of the file system and registry, so you don't see all parts of the system.

    Note also that you cannot call 64-bit DLLs from 32-bit code and vice versa.