Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Win32::GUI make file test fail

by hurnhu (Initiate)
on May 23, 2013 at 23:29 UTC ( #1035040=perlquestion: print w/ replies, xml ) Need Help??
hurnhu has asked for the wisdom of the Perl Monks concerning the following question:

bean trying to install Win32::GUI, have tried force, uninstalled and reinstall of strawberry, tried to build it, but here is the error i get when i cpan Win32::GUI

In file included from Scintilla.xs:8:0: ../GUI.h:768:22: warning: 'ImageList_Duplicate' redeclared without dll +import att ribute: previous dllimport ignored [-Wattributes] Scintilla.xs: In function 'CallWndProc': Scintilla.xs:199:101: error: 'GWL_USERDATA' undeclared (first use in t +his functi on) Scintilla.xs:199:101: note: each undeclared identifier is reported onl +y once for each function it appears in dmake: Error code 129, while making 'Scintilla.o' dmake.exe: Error code 255, while making 'subdirs' ROBERTMAY/Win32-GUI/Win32-GUI-1.06.tar.gz C:\strawberry\c\bin\dmake.exe -- NOT OK CPAN: YAML::XS loaded ok (v0.39) Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible Stopping: 'install' failed for 'Win32::GUI'.

perl vr: 5.16.3

Comment on Win32::GUI make file test fail
Download Code
Re: Win32::GUI make file test fail (search)
by Anonymous Monk on May 24, 2013 at 02:09 UTC
Re: Win32::GUI make file test fail
by syphilis (Canon) on May 24, 2013 at 02:57 UTC
    Hi,

    GWL_USERDATA is defined as -21 in winuser.h.
    Near the beginning of scintilla.xs, immediately following the line:
    #include "./include/Scintilla.h"
    I would insert:
    #ifndef GWL_USERDATA #define GWL_USERDATA (-21) #endif
    I don't think that insertion will create any problems. If it does, then we probably start to think that the GWL_USERDATA definition was skipped in the strawberry build for a very good reason.

    Anyway, see how that goes - and if it fixes the problem, maybe ask the Strawberry developers (by posting to the strawberry mailing list) just how/why it is that their winuser.h definition of GWL_USERDATA is being skipped for Strawberry Perl.

    Cheers,
    Rob

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1035040]
Approved by kcott
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2015-07-02 04:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (27 votes), past polls