Menu

#81 Unable to compile with Visual Studio 2013

1.06
open
nobody
None
5
2015-04-17
2014-10-31
Dez
No

This is a report for 1.08. Trying to compile with Visual Studio 2013 on a Windows 7 box.

BUILDENV=vc Used build environment is: MSWin32 and Visual C++

NOTE: Makefile.PL will add the instruction to use the Resource Compiler to
your Makefile; if you don't want to compile resources with your extension,
call this script with this additional argument:

perl Makefile.PL USERESOURCE=0

Checking if your kit is complete...
Looks good
Warning (mostly harmless): No library found for -latl
Generating a nmake-style Makefile
Writing Makefile for Win32::GUI::AxWindow
Writing MYMETA.yml and MYMETA.json
Generating a nmake-style Makefile
Writing Makefile for Win32::GUI::BitmapInline
Writing MYMETA.yml and MYMETA.json
Writing Makefile for Win32::GUI::Constants - perfect.exe
Generating a nmake-style Makefile
Writing Makefile for Win32::GUI::Constants
Writing MYMETA.yml and MYMETA.json
Generating a nmake-style Makefile
Writing Makefile for Win32::GUI::DIBitmap
Writing MYMETA.yml and MYMETA.json
Generating a nmake-style Makefile
Writing Makefile for Win32::GUI::DropFiles
Writing MYMETA.yml and MYMETA.json
Warning (mostly harmless): No library found for -lMfc42
Warning (mostly harmless): No library found for -lEafxis
Generating a nmake-style Makefile
Writing Makefile for Win32::GUI::Grid
Writing MYMETA.yml and MYMETA.json
Generating a nmake-style Makefile
Writing Makefile for Win32::GUI::ReleaseNotes
Writing MYMETA.yml and MYMETA.json
Generating a nmake-style Makefile
Writing Makefile for Win32::GUI::Scintilla
Writing MYMETA.yml and MYMETA.json
Generating a nmake-style Makefile
Writing Makefile for Win32::GUI
Writing MYMETA.yml and MYMETA.json

C:\third_party\emsng_build\sandbox\Win32-GUI-1.08>nmake

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.

cp GridLayout.pm blib\lib\Win32/GUI/GridLayout.pm
cp GUI.pm blib\lib\Win32/GUI.pm
nmake -f Makefile all -nologo W32G_CORE=1
cp AxWindow.pm ..\blib\lib\Win32\GUI\AxWindow.pm
Running Mkbootstrap for Win32::GUI::AxWindow ()
C:\Install\perl\bin\perl.exe -MExtUtils::Command -e chmod -- 644 AxWindo
w.bs
C:\Install\perl\bin\perl.exe C:\install\perl\lib\ExtUtils\xsubpp -typem
ap C:\Install\perl\lib\ExtUtils\typemap -typemap typemap AxWindow.xs > AxWindow
.xsc && C:\Install\perl\bin\perl.exe -MExtUtils::Command -e mv -- AxWindow.xsc A
xWindow.cpp
cl -c -nologo -GF -W3 -O1 -MD -Zi -DNDEBUG -GL -DWIN32 -D_CONSOLE -DN
O_STRICT -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DPERL_TEXTMODE_
SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -O1 -MD -Zi -DN
DEBUG -GL -DVERSION=\"0.09\" -DXS_VERSION=\"0.09\" "-IC:\Install\perl\lib\C
ORE" AxWindow.cpp
AxWindow.cpp
C:\Program Files\Microsoft Visual Studio 12.0\VC\ATLMFC\INCLUDE\atlwin.h(3761) :
error C2440: 'return' : cannot convert from 'INT_PTR (__stdcall *)(HWND,UINT,WP
ARAM,LPARAM)' to 'DLGPROC'
This conversion requires a reinterpret_cast, a C-style cast or function-
style cast
C:\Program Files\Microsoft Visual Studio 12.0\VC\ATLMFC\INCLUDE\atlwin.h
(3760) : while compiling class template member function 'DLGPROC ATL::CDialogImp
lBaseT<ATL::CWindow>::GetDialogProc(void)'
C:\Program Files\Microsoft Visual Studio 12.0\VC\ATLMFC\INCLUDE\atlwin.h
(4395) : see reference to class template instantiation 'ATL::CDialogImplBaseT<AT L::CWindow="">' being compiled
C:\Program Files\Microsoft Visual Studio 12.0\VC\ATLMFC\INCLUDE\atlwin.h
(4435) : see reference to class template instantiation 'ATL::CSimpleDialog<t_wDl gTemplateID,t_bCenter="">' being compiled
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 12.0\VC\BI
N\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'C:\third_party\emsng_build\bin\nmake.EXE' : return c
ode '0x2'
Stop.

Summary of my perl5 (revision 5 version 20 subversion 1) configuration:

Platform:
osname=MSWin32, osvers=6.1, archname=MSWin32-x86-multi-thread
uname=''
config_args='undef'
hint=recommended, useposix=true, d_sigaction=undef
useithreads=define, usemultiplicity=define
use64bitint=undef, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cl', ccflags ='-nologo -GF -W3 -O1 -MD -Zi -DNDEBUG -GL -DWIN32 -D_CONSO
LE -DNO_STRICT -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DPERL_TE
XTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO',
optimize='-O1 -MD -Zi -DNDEBUG -GL',
cppflags='-DWIN32'
ccversion='18.00.21005.1', gccversion='', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=8
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='__int64', lseeksi
ze=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='link', ldflags ='-nologo -nodefaultlib -debug -opt:ref,icf -ltcg -libpa
th:"c:\Install\perl\lib\CORE" -machine:x86 "/manifestdependency:type='Win32' na
me='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='
' publicKeyToken='6595b64144ccf1df' language=''"'
libpth=\lib
libs=oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.l
ib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib ws2_32
.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib comctl32.lib msvcrt.
lib
perllibs=oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg
32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib ws
2_32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib comctl32.lib msv
crt.lib
libc=msvcrt.lib, so=dll, useshrplib=true, libperl=perl520.lib
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -debug -opt:ref,icf -l
tcg -libpath:"c:\Install\perl\lib\CORE" -machine:x86 "/manifestdependency:type
='Win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArc
hitecture='' publicKeyToken='6595b64144ccf1df' language=''"'

Characteristics of this binary (from libperl):
Compile-time options: HAS_TIMES HAVE_INTERP_INTERN MULTIPLICITY
PERLIO_LAYERS PERL_DONT_CREATE_GVSV
PERL_HASH_FUNC_ONE_AT_A_TIME_HARD
PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS
PERL_MALLOC_WRAP PERL_NEW_COPY_ON_WRITE
PERL_PRESERVE_IVUV USE_ITHREADS USE_LARGE_FILES
USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE
USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF
Built under MSWin32
Compiled at Oct 28 2014 14:54:23
@INC:
C:/install/perl/site/lib
C:/install/perl/lib
.

Discussion

  • Dez

    Dez - 2014-10-31

    The bug also appears in versions 1.06, 1.07, and 1.08_07.

     
  •  kmx

    kmx - 2014-11-04

    try latest dev release from https://metacpan.org/release/KMX/Win32-GUI-1.08_10

    if it still fails you can skip AxWindows by:
    set SKIP_WIN32_GUI_AXWINDOW=1
    before installing Win32-GUI

     
  • Dez

    Dez - 2014-11-04

    This is what I get now without adding the SKIP environment var.

    C:\Win32-GUI-1.08_10>nmake
    
    Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
    Copyright (C) Microsoft Corporation.  All rights reserved.
    
    cp GridLayout.pm blib\lib\Win32/GUI/GridLayout.pm
    cp GUI.pm blib\lib\Win32/GUI.pm
            nmake -f Makefile all -nologo W32G_CORE=1
    cp AxWindow.pm ..\blib\lib\Win32\GUI\AxWindow.pm
    Running Mkbootstrap for Win32::GUI::AxWindow ()
            D:\Install\perl\bin\perl.exe -MExtUtils::Command -e chmod -- 644 AxWindow.bs
            D:\Install\perl\bin\perl.exe D:\Install\perl\lib\ExtUtils\xsubpp  -typemap D:\Install\perl\lib\ExtUtils\typemap
    -typemap typemap  AxWindow.xs > AxWindow.xsc && D:\Install\perl\bin\perl.exe -MExtUtils::Command -e mv -- AxWindow.xsc A
    xWindow.cpp
            cl -c    -UNO_STRICT -O1 -MD -Zi -DNDEBUG -GL    -DVERSION=\"0.09\"  -DXS_VERSION=\"0.09\"  "-ID:\Install\perl\l
    ib\CORE"   AxWindow.cpp
    Microsoft (R) C/C++ Optimizing Compiler Version 18.00.21005.1 for x86
    Copyright (C) Microsoft Corporation.  All rights reserved.
    
    AxWindow.cpp
            D:\Install\perl\bin\perl.exe "-I..\blib\arch" "-I..\blib\lib" AxWindowRC.PL AxWindow.rc
            rc.exe  AxWindow.rc
    Microsoft (R) Windows (R) Resource Compiler Version 6.3.9600.16384
    Copyright (C) Microsoft Corporation.  All rights reserved.
    
            D:\Install\perl\bin\perl.exe -MExtUtils::Mksymlists  -e "Mksymlists('NAME'=>\"Win32::GUI::AxWindow\", 'DLBASE' =
    > 'AxWindow', 'DL_FUNCS' => {  }, 'FUNCLIST' => [], 'IMPORTS' => {  }, 'DL_VARS' => []);"
            link -out:..\blib\arch\auto\Win32\GUI\AxWindow\AxWindow.dll -dll -nologo -nodefaultlib -debug -opt:ref,icf -ltcg
      -libpath:"D:\Install\perl\lib\CORE"  -machine:x86 "/manifestdependency:type='Win32' name='Microsoft.Windows.Common-Con
    trols' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'" AxWindow.obj AxWindow
    .res   D:\Install\perl\lib\CORE\perl520.lib "C:\Program Files\Microsoft Visual Studio 12.0\VC\LIB\oldnames.lib" "C:\Prog
    ram Files\Windows Kits\8.1\lib\winv6.3\um\x86\kernel32.lib" "C:\Program Files\Windows Kits\8.1\lib\winv6.3\um\x86\user32
    .lib" "C:\Program Files\Windows Kits\8.1\lib\winv6.3\um\x86\gdi32.lib" "C:\Program Files\Windows Kits\8.1\lib\winv6.3\um
    \x86\winspool.lib" "C:\Program Files\Windows Kits\8.1\lib\winv6.3\um\x86\comdlg32.lib" "C:\Program Files\Windows Kits\8.
    1\lib\winv6.3\um\x86\advapi32.lib" "C:\Program Files\Windows Kits\8.1\lib\winv6.3\um\x86\shell32.lib" "C:\Program Files\
    Windows Kits\8.1\lib\winv6.3\um\x86\ole32.lib" "C:\Program Files\Windows Kits\8.1\lib\winv6.3\um\x86\oleaut32.lib" "C:\P
    rogram Files\Windows Kits\8.1\lib\winv6.3\um\x86\netapi32.lib" "C:\Program Files\Windows Kits\8.1\lib\winv6.3\um\x86\uui
    d.lib" "C:\Program Files\Windows Kits\8.1\lib\winv6.3\um\x86\ws2_32.lib" "C:\Program Files\Windows Kits\8.1\lib\winv6.3\
    um\x86\mpr.lib" "C:\Program Files\Windows Kits\8.1\lib\winv6.3\um\x86\winmm.lib" "C:\Program Files\Windows Kits\8.1\lib\
    winv6.3\um\x86\version.lib" "C:\Program Files\Windows Kits\8.1\lib\winv6.3\um\x86\odbc32.lib" "C:\Program Files\Windows
    Kits\8.1\lib\winv6.3\um\x86\odbccp32.lib" "C:\Program Files\Windows Kits\8.1\lib\winv6.3\um\x86\comctl32.lib" "C:\Progra
    m Files\Microsoft Visual Studio 12.0\VC\LIB\msvcrt.lib" -def:AxWindow.def
       Creating library ..\blib\arch\auto\Win32\GUI\AxWindow\AxWindow.lib and object ..\blib\arch\auto\Win32\GUI\AxWindow\Ax
    Window.exp
    AxWindow.obj : error LNK2001: unresolved external symbol "void __stdcall ATL::__FreeStdCallThunk(void *)" (?__FreeStdCal
    lThunk@ATL@@YGXPAX@Z)
    AxWindow.obj : error LNK2001: unresolved external symbol "class ATL::CAtlBaseModule ATL::_AtlBaseModule" (?_AtlBaseModul
    e@ATL@@3VCAtlBaseModule@1@A)
    AxWindow.obj : error LNK2001: unresolved external symbol "void * __stdcall ATL::__AllocStdCallThunk(void)" (?__AllocStdC
    allThunk@ATL@@YGPAXXZ)
    ..\blib\arch\auto\Win32\GUI\AxWindow\AxWindow.dll : fatal error LNK1120: 3 unresolved externals
    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 12.0\VC\BIN\link.EXE"' : return code '0x460'
    Stop.
    NMAKE : fatal error U1077: 'C:\third_party\emsng_build\bin\nmake.EXE' : return code '0x2'
    Stop.
    
     

    Last edit: Dez 2014-11-04
  • Dez

    Dez - 2014-11-04

    with the SKIP environment variable set:

    C:\Win32-GUI-1.08_10>nmake
    Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
    Copyright (C) Microsoft Corporation.  All rights reserved.
    
    cp GridLayout.pm blib\lib\Win32/GUI/GridLayout.pm
    cp GUI.pm blib\lib\Win32/GUI.pm
            nmake -f Makefile all -nologo W32G_CORE=1
            cd ..
            nmake -f Makefile all -nologo W32G_CORE=1
    cp BitmapInline.pm ..\blib\lib\Win32\GUI\BitmapInline.pm
            cd ..
            nmake -f Makefile all -nologo W32G_CORE=1
    cp Tags.pm ..\blib\lib\Win32\GUI/Constants/Tags.pm
    AutoSplitting ..\blib\lib\Win32\GUI/Constants/Tags.pm (..\blib\lib\auto\Win32\GUI\Constants\Tags)
    cp Constants.pm ..\blib\lib\Win32\GUI/Constants.pm
            nmake -f Makefile all -nologo
            cl -nologo -O -c lookupa.c
    cl : Command line warning D9035 : option 'O' has been deprecated and will be removed in a future release
    lookupa.c
            cl -nologo -O -c recycle.c
    cl : Command line warning D9035 : option 'O' has been deprecated and will be removed in a future release
    recycle.c
            cl -nologo -O -c perfhex.c
    cl : Command line warning D9035 : option 'O' has been deprecated and will be removed in a future release
    perfhex.c
            cl -nologo -O -c perfect.c
    cl : Command line warning D9035 : option 'O' has been deprecated and will be removed in a future release
    perfect.c
            cl -nologo  -Feperfect.exe lookupa.obj recycle.obj perfhex.obj perfect.obj
            cd ..
    Running Mkbootstrap for Win32::GUI::Constants ()
            D:\Install\perl\bin\perl.exe -MExtUtils::Command -e chmod -- 644 Constants.bs
            D:\Install\perl\bin\perl.exe "-I..\blib\arch" "-I..\blib\lib" Constants.PL constants.h
            D:\Install\perl\bin\perl.exe "-I..\blib\arch" "-I..\blib\lib" Constants.PL constants.src
            hash\perfect.exe < constants.src
    Read in 2031 keys
    found distinct (A,B) on attempt 143
    built perfect hash table of size 512
    Wrote phash.def
    Cleaned up
            D:\Install\perl\bin\perl.exe "-I..\blib\arch" "-I..\blib\lib" Constants.PL phash.inc
            D:\Install\perl\bin\perl.exe D:\Install\perl\lib\ExtUtils\xsubpp  -typemap D:\Install\perl\lib\ExtUtils\typemap
     Constants.xs > Constants.xsc && D:\Install\perl\bin\perl.exe -MExtUtils::Command -e mv -- Constants.xsc Constants.c
            cl -c    -nologo -GF -W3 -O1 -MD -Zi -DNDEBUG -GL -DWIN32 -D_CONSOLE -DNO_STRICT -D_CRT_SECURE_NO_DEPRECATE -D_C
    RT_NONSTDC_NO_DEPRECATE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -O1 -MD -Zi -DN
    DEBUG -GL    -DVERSION=\"0.04\"  -DXS_VERSION=\"0.04\"  "-ID:\Install\perl\lib\CORE"   Constants.c
    Constants.c
            D:\Install\perl\bin\perl.exe "-I..\blib\arch" "-I..\blib\lib" ConstantsRC.PL Constants.rc
            rc.exe  Constants.rc
    Microsoft (R) Windows (R) Resource Compiler Version 6.3.9600.16384
    Copyright (C) Microsoft Corporation.  All rights reserved.
    
            D:\Install\perl\bin\perl.exe -MExtUtils::Mksymlists  -e "Mksymlists('NAME'=>\"Win32::GUI::Constants\", 'DLBASE'
    => 'Constants', 'DL_FUNCS' => {  }, 'FUNCLIST' => [], 'IMPORTS' => {  }, 'DL_VARS' => []);"
            link -out:..\blib\arch\auto\Win32\GUI\Constants\Constants.dll -dll -nologo -nodefaultlib -debug -opt:ref,icf -lt
    cg  -libpath:"D:\Install\perl\lib\CORE"  -machine:x86 "/manifestdependency:type='Win32' name='Microsoft.Windows.Common-C
    ontrols' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'" Constants.obj Const
    ants.res   D:\Install\perl\lib\CORE\perl520.lib oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib  comdlg32.li
    b advapi32.lib shell32.lib ole32.lib oleaut32.lib  netapi32.lib uuid.lib ws2_32.lib mpr.lib winmm.lib  version.lib odbc3
    2.lib odbccp32.lib comctl32.lib msvcrt.lib -def:Constants.def
       Creating library ..\blib\arch\auto\Win32\GUI\Constants\Constants.lib and object ..\blib\arch\auto\Win32\GUI\Constants
    \Constants.exp
    Generating code
    Finished generating code
            if exist ..\blib\arch\auto\Win32\GUI\Constants\Constants.dll.manifest mt -nologo -manifest ..\blib\arch\auto\Win
    32\GUI\Constants\Constants.dll.manifest -outputresource:..\blib\arch\auto\Win32\GUI\Constants\Constants.dll;2
            if exist ..\blib\arch\auto\Win32\GUI\Constants\Constants.dll.manifest del ..\blib\arch\auto\Win32\GUI\Constants\
    Constants.dll.manifest
            D:\Install\perl\bin\perl.exe -MExtUtils::Command -e chmod -- 755 ..\blib\arch\auto\Win32\GUI\Constants\Constants
    .dll
            D:\Install\perl\bin\perl.exe -MExtUtils::Command -e cp -- demos/ConstantsDemo.pl ..\blib\lib/Win32/GUI/demos/Con
    stants
            D:\Install\perl\bin\perl.exe "-I..\blib\arch" "-I..\blib\lib" Constants.PL t/70_values.def
            cd ..
            nmake -f Makefile all -nologo W32G_CORE=1
    cp DIBitmap.pm ..\blib\lib\Win32\GUI\DIBitmap.pm
    Running Mkbootstrap for Win32::GUI::DIBitmap ()
            D:\Install\perl\bin\perl.exe -MExtUtils::Command -e chmod -- 644 DIBitmap.bs
            D:\Install\perl\bin\perl.exe D:\Install\perl\lib\ExtUtils\xsubpp  -typemap D:\Install\perl\lib\ExtUtils\typemap
    -typemap typemap  DIBitmap.xs > DIBitmap.xsc && D:\Install\perl\bin\perl.exe -MExtUtils::Command -e mv -- DIBitmap.xsc D
    IBitmap.c
            cl -c    -nologo -GF -W3 -O1 -MD -Zi -DNDEBUG -GL -DWIN32 -D_CONSOLE -DNO_STRICT -D_CRT_SECURE_NO_DEPRECATE -D_C
    RT_NONSTDC_NO_DEPRECATE -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -O1 -MD -Zi -DN
    DEBUG -GL    -DVERSION=\"0.17\"  -DXS_VERSION=\"0.17\"  "-ID:\Install\perl\lib\CORE"   DIBitmap.c
    DIBitmap.c
            D:\Install\perl\bin\perl.exe "-I..\blib\arch" "-I..\blib\lib" DIBitmapRC.PL DIBitmap.rc
            rc.exe  DIBitmap.rc
    Microsoft (R) Windows (R) Resource Compiler Version 6.3.9600.16384
    Copyright (C) Microsoft Corporation.  All rights reserved.
    
            D:\Install\perl\bin\perl.exe -MExtUtils::Mksymlists  -e "Mksymlists('NAME'=>\"Win32::GUI::DIBitmap\", 'DLBASE' =
    > 'DIBitmap', 'DL_FUNCS' => {  }, 'FUNCLIST' => [], 'IMPORTS' => {  }, 'DL_VARS' => []);"
            link -out:..\blib\arch\auto\Win32\GUI\DIBitmap\DIBitmap.dll -dll -nologo -nodefaultlib -debug -opt:ref,icf -ltcg
      -libpath:"D:\Install\perl\lib\CORE"  -machine:x86 "/manifestdependency:type='Win32' name='Microsoft.Windows.Common-Con
    trols' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'" DIBitmap.obj DIBitmap
    .res  extlib/FreeImage.lib D:\Install\perl\lib\CORE\perl520.lib "C:\Program Files\Microsoft Visual Studio 12.0\VC\LIB\ms
    vcprt.lib" "C:\Program Files\Microsoft Visual Studio 12.0\VC\LIB\oldnames.lib" "C:\Program Files\Windows Kits\8.1\lib\wi
    nv6.3\um\x86\kernel32.lib" "C:\Program Files\Windows Kits\8.1\lib\winv6.3\um\x86\user32.lib" "C:\Program Files\Windows K
    its\8.1\lib\winv6.3\um\x86\gdi32.lib" "C:\Program Files\Windows Kits\8.1\lib\winv6.3\um\x86\winspool.lib" "C:\Program Fi
    les\Windows Kits\8.1\lib\winv6.3\um\x86\comdlg32.lib" "C:\Program Files\Windows Kits\8.1\lib\winv6.3\um\x86\advapi32.lib
    " "C:\Program Files\Windows Kits\8.1\lib\winv6.3\um\x86\shell32.lib" "C:\Program Files\Windows Kits\8.1\lib\winv6.3\um\x
    86\ole32.lib" "C:\Program Files\Windows Kits\8.1\lib\winv6.3\um\x86\oleaut32.lib" "C:\Program Files\Windows Kits\8.1\lib
    \winv6.3\um\x86\netapi32.lib" "C:\Program Files\Windows Kits\8.1\lib\winv6.3\um\x86\uuid.lib" "C:\Program Files\Windows
    Kits\8.1\lib\winv6.3\um\x86\ws2_32.lib" "C:\Program Files\Windows Kits\8.1\lib\winv6.3\um\x86\mpr.lib" "C:\Program Files
    \Windows Kits\8.1\lib\winv6.3\um\x86\winmm.lib" "C:\Program Files\Windows Kits\8.1\lib\winv6.3\um\x86\version.lib" "C:\P
    rogram Files\Windows Kits\8.1\lib\winv6.3\um\x86\odbc32.lib" "C:\Program Files\Windows Kits\8.1\lib\winv6.3\um\x86\odbcc
    p32.lib" "C:\Program Files\Windows Kits\8.1\lib\winv6.3\um\x86\comctl32.lib" "C:\Program Files\Microsoft Visual Studio 1
    2.0\VC\LIB\msvcrt.lib" -def:DIBitmap.def
       Creating library ..\blib\arch\auto\Win32\GUI\DIBitmap\DIBitmap.lib and object ..\blib\arch\auto\Win32\GUI\DIBitmap\DI
    Bitmap.exp
    FreeImage.lib(BitmapAccess.obj) : error LNK2001: unresolved external symbol "void __cdecl std::_Xran(void)" (?_Xran@std@
    @YAXXZ)
    FreeImage.lib(PluginXPM.obj) : error LNK2001: unresolved external symbol "void __cdecl std::_Xran(void)" (?_Xran@std@@YA
    XXZ)
    FreeImage.lib(BitmapAccess.obj) : error LNK2001: unresolved external symbol "void __cdecl std::_Xlen(void)" (?_Xlen@std@
    @YAXXZ)
    FreeImage.lib(CacheFile.obj) : error LNK2001: unresolved external symbol "void __cdecl std::_Xlen(void)" (?_Xlen@std@@YA
    XXZ)
    FreeImage.lib(PluginXPM.obj) : error LNK2001: unresolved external symbol "void __cdecl std::_Xlen(void)" (?_Xlen@std@@YA
    XXZ)
    FreeImage.lib(IPTC.obj) : error LNK2001: unresolved external symbol "void __cdecl std::_Xlen(void)" (?_Xlen@std@@YAXXZ)
    FreeImage.lib(pngwutil.obj) : error LNK2001: unresolved external symbol __iob
    FreeImage.lib(jerror.obj) : error LNK2001: unresolved external symbol __iob
    FreeImage.lib(gif_err.obj) : error LNK2001: unresolved external symbol __iob
    FreeImage.lib(pngerror.obj) : error LNK2001: unresolved external symbol __iob
    FreeImage.lib(pngrutil.obj) : error LNK2001: unresolved external symbol __iob
    ..\blib\arch\auto\Win32\GUI\DIBitmap\DIBitmap.dll : fatal error LNK1120: 3 unresolved externals
    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 12.0\VC\BIN\link.EXE"' : return code '0x460'
    Stop.
    NMAKE : fatal error U1077: 'C:\third_party\emsng_build\bin\nmake.EXE' : return code '0x2'
    Stop.
    
     
  • Dez

    Dez - 2014-11-04

    Tested with _11:

    C:\Win32-GUI-1.08_11>nmake
    
    Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
    Copyright (C) Microsoft Corporation.  All rights reserved.
    
    cp GridLayout.pm blib\lib\Win32/GUI/GridLayout.pm
    cp GUI.pm blib\lib\Win32/GUI.pm
            nmake -f Makefile all -nologo W32G_CORE=1
    cp AxWindow.pm ..\blib\lib\Win32\GUI\AxWindow.pm
    Running Mkbootstrap for Win32::GUI::AxWindow ()
            D:\Install\perl\bin\perl.exe -MExtUtils::Command -e chmod -- 644 AxWindow.bs
            D:\Install\perl\bin\perl.exe D:\Install\perl\lib\ExtUtils\xsubpp  -typemap D:\Install\perl\lib\ExtUtils\typemap
    -typemap typemap  AxWindow.xs > AxWindow.xsc && D:\Install\perl\bin\perl.exe -MExtUtils::Command -e mv -- AxWindow.xsc A
    xWindow.cpp
            cl -c    -UNO_STRICT -O1 -MD -Zi -DNDEBUG -GL    -DVERSION=\"0.09\"  -DXS_VERSION=\"0.09\"  "-ID:\Install\perl\l
    ib\CORE"   AxWindow.cpp
    Microsoft (R) C/C++ Optimizing Compiler Version 18.00.21005.1 for x86
    Copyright (C) Microsoft Corporation.  All rights reserved.
    
    AxWindow.cpp
            D:\Install\perl\bin\perl.exe "-I..\blib\arch" "-I..\blib\lib" AxWindowRC.PL AxWindow.rc
            rc.exe  AxWindow.rc
    Microsoft (R) Windows (R) Resource Compiler Version 6.3.9600.16384
    Copyright (C) Microsoft Corporation.  All rights reserved.
    
            D:\Install\perl\bin\perl.exe -MExtUtils::Mksymlists  -e "Mksymlists('NAME'=>\"Win32::GUI::AxWindow\", 'DLBASE' =
    > 'AxWindow', 'DL_FUNCS' => {  }, 'FUNCLIST' => [], 'IMPORTS' => {  }, 'DL_VARS' => []);"
            link -out:..\blib\arch\auto\Win32\GUI\AxWindow\AxWindow.dll -dll -nologo -nodefaultlib -debug -opt:ref,icf -ltcg
      -libpath:"D:\Install\perl\lib\CORE"  -machine:x86 "/manifestdependency:type='Win32' name='Microsoft.Windows.Common-Con
    trols' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'" AxWindow.obj AxWindow
    .res   D:\Install\perl\lib\CORE\perl520.lib "C:\Program Files\Microsoft Visual Studio 12.0\VC\LIB\oldnames.lib" "C:\Prog
    ram Files\Windows Kits\8.1\lib\winv6.3\um\x86\kernel32.lib" "C:\Program Files\Windows Kits\8.1\lib\winv6.3\um\x86\user32
    .lib" "C:\Program Files\Windows Kits\8.1\lib\winv6.3\um\x86\gdi32.lib" "C:\Program Files\Windows Kits\8.1\lib\winv6.3\um
    \x86\winspool.lib" "C:\Program Files\Windows Kits\8.1\lib\winv6.3\um\x86\comdlg32.lib" "C:\Program Files\Windows Kits\8.
    1\lib\winv6.3\um\x86\advapi32.lib" "C:\Program Files\Windows Kits\8.1\lib\winv6.3\um\x86\shell32.lib" "C:\Program Files\
    Windows Kits\8.1\lib\winv6.3\um\x86\ole32.lib" "C:\Program Files\Windows Kits\8.1\lib\winv6.3\um\x86\oleaut32.lib" "C:\P
    rogram Files\Windows Kits\8.1\lib\winv6.3\um\x86\netapi32.lib" "C:\Program Files\Windows Kits\8.1\lib\winv6.3\um\x86\uui
    d.lib" "C:\Program Files\Windows Kits\8.1\lib\winv6.3\um\x86\ws2_32.lib" "C:\Program Files\Windows Kits\8.1\lib\winv6.3\
    um\x86\mpr.lib" "C:\Program Files\Windows Kits\8.1\lib\winv6.3\um\x86\winmm.lib" "C:\Program Files\Windows Kits\8.1\lib\
    winv6.3\um\x86\version.lib" "C:\Program Files\Windows Kits\8.1\lib\winv6.3\um\x86\odbc32.lib" "C:\Program Files\Windows
    Kits\8.1\lib\winv6.3\um\x86\odbccp32.lib" "C:\Program Files\Windows Kits\8.1\lib\winv6.3\um\x86\comctl32.lib" "C:\Progra
    m Files\Microsoft Visual Studio 12.0\VC\LIB\msvcrt.lib" -def:AxWindow.def
       Creating library ..\blib\arch\auto\Win32\GUI\AxWindow\AxWindow.lib and object ..\blib\arch\auto\Win32\GUI\AxWindow\Ax
    Window.exp
    AxWindow.obj : error LNK2001: unresolved external symbol "void __stdcall ATL::__FreeStdCallThunk(void *)" (?__FreeStdCal
    lThunk@ATL@@YGXPAX@Z)
    AxWindow.obj : error LNK2001: unresolved external symbol "class ATL::CAtlBaseModule ATL::_AtlBaseModule" (?_AtlBaseModul
    e@ATL@@3VCAtlBaseModule@1@A)
    AxWindow.obj : error LNK2001: unresolved external symbol "void * __stdcall ATL::__AllocStdCallThunk(void)" (?__AllocStdC
    allThunk@ATL@@YGPAXXZ)
    ..\blib\arch\auto\Win32\GUI\AxWindow\AxWindow.dll : fatal error LNK1120: 3 unresolved externals
    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 12.0\VC\BIN\link.EXE"' : return code '0x460'
    Stop.
    NMAKE : fatal error U1077: 'C:\third_party\emsng_build\bin\nmake.EXE' : return code '0x2'
    Stop.
    
     
  •  kmx

    kmx - 2014-11-05

    you will probably need to set not only:
    set SKIP_WIN32_GUI_AXWINDOW=1
    but also
    set SKIP_WIN32_GUI_DIBITMAP=1
    set SKIP_WIN32_GUI_GRID=1

    Ad ATL linking failure: I have unfortunately nearly zero knowledge about ATL therefore I have no idea what are the correct linker options. I have on my PC only Visual C++ 2008 Express which comes even without ATL headers so it is hard to debug for me.

     
  • Dez

    Dez - 2014-11-05

    Tested with _12. Setting all 3 does indeed allow the build to complete. And all tests except the ones requiring Win32::API (It is not installed.) passed. I'll have to get with the application team to make sure that the features they use are still supported.

    Thanks.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.