in reply to Re^2: Compiling perl on windows with visual studio
in thread Compiling perl on windows with visual studio

I uncommented WIN64 = undef so it means that I have 32bit perl, yes?

You should uncomment that only if your Windows OS is 64-bit && your compiler is 32-bit.
Maybe run "nmake distclean" and then try re-building with that line commented out .... see if that improves things ....

Cheers,
Rob
  • Comment on Re^3: Compiling perl on windows with visual studio

Replies are listed 'Best First'.
Re^4: Compiling perl on windows with visual studio
by DrMoisha (Novice) on Mar 25, 2015 at 09:51 UTC
    if your Windows OS is 64-bit && your compiler is 32-bit I honestly think that it is my case)

    Good news: it's worked with native x64 bit nmake! Though I'm confused because it seems to be called amd64 and I have Intel.

    Bad news: it fails completely with native x86 bit nmake. Error message: "module type (x86) does not match with target machine type (x64)". So it seems that compiler is 64-bit

      Though I'm confused because it seems to be called amd64

      Don't be. 'x64' is 'AMD64' is 'Intel 64' is 'IA 64' is 'x86-64' is 'IA-32e' is 'EM64T'.

      Basically, AMD implemented the first x86 compatible 64-bit architecture and called it AMD64; and found themselves with a rare success on their hands. They had the drop on Intel for a while.

      When Intel released their version, they weren't going to call it ADM64 (despite that they were pretty muched forced to be compatible with it), so in typical Intel fashion, they vacillated and prevaricated, and changed the name a half dozen times.

      Meanwhile, the rest of the world decided upon their own labels for x86 compatible 64-bit architecture and the rest is history.

      See x86-64 for some more of the details and history.


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority". I'm with torvalds on this
      In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked
      Though I'm confused because it seems to be called amd64 and I have Intel

      Yeah, I have an x64 MS compiler that does the same thing.
      I'm inclined to think it doesn't matter as it hasn't caused me any problems. (But that's not necessarily good reasoning on my part ;-)

      So it seems that compiler is 64-bit

      Does that matter ?
      If it does,then I'm thinking there might also be a 32-bit compiler (lurking there in your MSVC installation) that could be unleashed if one knew how to do it. (I don't use MS compilers very often.)
      But if it doesn't matter, then I'm thinking "problem solved" :-)

      Cheers,
      Rob