in reply to Re^9: Installing Perl modules on Win64/Perl 5.8
in thread Installing Perl modules on Win64/Perl 5.8

Targeting Windows XP X64 RETAIL

That looks right. It comes from this section of setenv.cmd:
Echo Targeting Windows XP X64 %DEBUGMSG% Echo. Set Lib=%MSSdk%\Lib\AMD64;%MSSdk%\Lib\AMD64\atlmfc; Set Include=%MSSdk%\Include;%MSSdk%\Include\crt;%MSSdk%\Include\crt\sy +s;%MSSdk%\Include\mfc;%MSSdk%\Include\atl Set Path=%MSSdk%\Bin\Win64\x86\AMD64;%MSSdk%\Bin;%MSSdk%\Bin\WinNT;%pa +th% Set APPVER=5.02 Set TARGETOS=WINNT Title Microsoft Platform SDK XP X64-bit IE 6.0 %DEBUGMSG% Build Enviro +nment Goto Finish
As you can see, there's more to it than setting just the path - it also sets the Lib and Include environment variables appropriately.
What does the corresponding section of your setenv.cmd contain ?
Is %MSSdk% being set correctly ? It should be the location you installed to. (For me it's C:\_64\Platform_SDK) Just put an "Echo" in front of the "Set Lib ..." command, and you'll see what %MSSdk% is set to when you run setenv.cmd. What does it produce ? Does it match an existing directory ?
Could you put a copy of your setenv.cmd on your scratchpad - or even post it here ?
As it stands, we've really very little to work with.

Cheers,
Rob

Replies are listed 'Best First'.
Re^11: Installing Perl modules on Win64/Perl 5.8
by lintunen (Novice) on Apr 19, 2010 at 10:12 UTC
    OK so I have updated this post because it seems I am on the road to successfully building a test module.
      Right, I can see why it was failing before but working now. I need to run SetEnv.cmd before each time I try to build a module. If I restart the machine, it no longer works until I ran the command again. Any thoughts?

        SetEnv sets the environment variables for the current command line window. If you close that window and open another, you need to re-run SetEnv in that session to be able to use the compiler.

        If you prefer the compiler enabled in all commnd line sessions across reboots, you can run it in one session, and then copy the path, include and lib setting from there into your system settings via:

        Start->settings->controlPanel->AdvancedSystemSettings->EnvironmentVari +ables

        And set them either just for the current user, or system wide.


        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".
        In the absence of evidence, opinion is indistinguishable from prejudice.