develooper Front page | perl.perl5.porters | Postings from August 2011

RE: Error building on windows 7 x64 with nmake

Thread Previous | Thread Next
From:
Jan Dubois
Date:
August 14, 2011 03:30
Subject:
RE: Error building on windows 7 x64 with nmake
Message ID:
003901cc5a6d$2446b310$6cd41930$@activestate.com
On Sat, 13 Aug 2011, Sisyphus wrote:
> ----- Original Message -----
On Sun, 14 Aug 2011, "register" <register72@gmail.com> wrote:
> > When I try to build from source in Windows 7, x64, visual studio
> > 2010 full, perl-5.14.1 I get the following error:
> >
> >        link -subsystem:console -out:..\generate_uudmap.exe
> > @C:\Users\lucar\AppD
> > ata\Local\Temp\nmD6A3.tmp
> > ..\generate_uudmap.obj : fatal error LNK1112: module machine type 'X86'
> > conflict s with target machine type 'x64' NMAKE : fatal error U1077:
> > '"C:\Program Files (x86)\Microsoft Visual Studio
> > 10.0 \VC\BIN\link.EXE"' : return code '0x458'
> >
> 
> If your compiler is a 32-bit compiler it may just be that you need to
> uncomment the line
> #WIN64  = undef
> in the Makefile. (This is mentioned in both the Makefile itself and the
> README.win32.)
> 
> But, of course, that's irrelevant if it's a 64-bit version of Visual Studio
> 2010.

The fact that the compiler is installed in "C:\Program Files (x86)\" and
not in " C:\Program Files\" does indeed support the assumption that this
is a 32-bit compiler and not the 64-bit version.

Note that you don't have to modify the Makefile to select 32-bit compilation;
you can simply set the value on the commandline:

set WIN64=undef
nmake

Cheers,
-Jan



Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About