alw has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to install Win32::Clipboard ver 53 on winxp. I have activeperl 5.8.8 820. I am using nmake since this is not available from activestate as a package. Makefile and nmake seem to work. nmake test first failed with a message that it could not find msvcr80.dll. I had msvcr70.dll installed already, So I installed msvcr80.dll in the system32 folder and now it fails with a runtime error saying that the app tried to load the c++ runtime library incorrectly. I ran nmake install anyway and a simple perl script using the module fails the same way. Anybody run into this problem? Any ideas? Thanks
  • Comment on Win32::Clipboard runtime error doing nmake test

Replies are listed 'Best First'.
Re: Win32::Clipboard runtime error doing nmake test
by marto (Cardinal) on Aug 03, 2008 at 19:16 UTC
Re: Win32::Clipboard runtime error doing nmake test
by syphilis (Archbishop) on Aug 04, 2008 at 07:16 UTC
    it fails with a runtime error saying that the app tried to load the c++ runtime library incorrectly

    Does it say which runtime library failed to load correctly ?
    ActivePerl is built using MSVC++ 6.0 and, whilst you'll be able to build most modules for ActivePerl using MSVC++ 8.0 (or 7.x or 8.x or 9.x), there can be instances where the mixing of different runtime libraries won't work. In those instances you need to avoid mixing runtimes - and that can be achieved by using either MSVC++ 6.0 or MinGW compiler with ActivePerl.

    Not sure if Win32::Clipboard is subject to this gotcha ... but I wouldn't be surprised if it is. In any case, the ppm to which marto directed you should be fine, as those binaries are built using MSVC++ 6.0.

    Cheers,
    Rob
Re: Win32::Clipboard runtime error doing nmake test
by cdarke (Prior) on Aug 04, 2008 at 08:14 UTC