Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^4: How to make Win32::OLE work on Cygwin (cpan -i -T Win32::OLE)

by Anonymous Monk
on Oct 30, 2015 at 05:30 UTC ( [id://1146447]=note: print w/replies, xml ) Need Help??


in reply to Re^3: How to make Win32::OLE work on Cygwin (cpan -i -T Win32::OLE)
in thread How to make Win32::OLE work on Cygwin

Hello,

I am running perl 5.14 and I am also having the same issue during Win32-OLE-0.1712 installation.

I am unable to understand the solution. Could you please explain how to resolve this problem? Thank you.

Issue:

Running Mkbootstrap for Win32::OLE () chmod 644 "OLE.bs" g++ -c -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -ggdb -O2 -pipe -Wim +plicit-function-declaration -fdebug-prefix-map=/mnt/share/maint/perl. +x86/build=/usr/src/debug/perl-5.14.4-3 -fdebug-prefix-map=/mnt/share/ +maint/perl.x86/src/perl-5.14.4=/usr/src/debug/perl-5.14.4-3 -fwrapv - +fno-strict-aliasing -fstack-protector -DUSEIMPORTLIB -O3 -DVERSION= +\"0.1712\" -DXS_VERSION=\"0.1712\" "-I/usr/lib/perl5/5.14/i686-cygwi +n-threads-64int/CORE" OLE.cpp cc1plus: warning: command line option ‘-Wimplicit-function-declaration +’ is valid for C/ObjC but not for C++ OLE.xs: In function ‘BOOL IsLocalMachine(PerlInterpreter*, SV*)’: OLE.xs:482:85: error: ‘stricmp’ was not declared in this scope if (GetComputerNameA(szComputerName, &dwSize) && stricmp(pszName, + szComputerName) == 0) + ^ Makefile:376: recipe for target 'OLE.o' failed make: *** [OLE.o] Error 1
  • Comment on Re^4: How to make Win32::OLE work on Cygwin (cpan -i -T Win32::OLE)
  • Download Code

Replies are listed 'Best First'.
Re^5: How to make Win32::OLE work on Cygwin (cpan -i -T Win32::OLE)
by syphilis (Archbishop) on Oct 30, 2015 at 06:32 UTC
    error: ‘stricmp’ was not declared in this scope

    In OLE.xs, prior to building the module, change the one occurrence of stricmp to strcmp.

    That allows the module to compile and pass its tests - on my Cygwin, at least.

    Cheers,
    Rob
Re^5: How to make Win32::OLE work on Cygwin (cpan -i -T Win32::OLE)
by Anonymous Monk on Oct 30, 2015 at 06:35 UTC

    I am unable to understand the solution. Could you please explain how to resolve this problem? Thank you.

    Ok

    edit OLE.xs

    replace "stricmp" with "strcasecmp"

    I hope that is clear

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1146447]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (2)
As of 2024-04-26 01:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found