makefile.xp for Crafty gives me this:
C:\Crafty>nmake -f Makefile.xp
Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.
cl /D_CONSOLE /DWIN32 /D_CRT_SECURE_NO_DEPRECATE /O2 /MT /DSMP /DCPUS=8
/DNT_i386 /c crafty.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.
crafty.c
cl /D_CONSOLE /DWIN32 /D_CRT_SECURE_NO_DEPRECATE /O2 /MT /DSMP /DCPUS=8
/DNT_i386 /Zm500 /c egtb.cpp
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.
egtb.cpp
link crafty.obj egtb.obj /out:crafty.exe
./link: extra operand `/out:crafty.exe'
Try `./link --help' for more information.
NMAKE : fatal error U1077: '.\link.EXE' : return code '0x1'
Stop.
C:\Crafty>
Did something change with the makefiles?
I don't see why it's doing this...??
Visual Studio 2010... & Crafty
Moderator: Ras
-
- Posts: 2272
- Joined: Fri Jul 14, 2006 7:56 am
- Location: London, England
- Full name: Jim Ablett
Re: Visual Studio 2010... & Crafty
Hi Joshua,
Compiles correctly with Msvc 2005.
Only difference in output I see is the link-time code generation switch which is missing from yours.
Yours >
Mine >
Jim.
Compiles correctly with Msvc 2005.
Only difference in output I see is the link-time code generation switch which is missing from yours.
Yours >
Code: Select all
link crafty.obj egtb.obj /out:crafty.exe
Mine >
Code: Select all
link /LTCG crafty.obj egtb.obj /out:crafty.exe
-
- Posts: 173
- Joined: Sun May 11, 2008 7:43 am
Re: Visual Studio 2010... & Crafty
I've tried MSV2008 also... same thing.
Still with /LTCG
C:\Crafty>nmake -f makefile.xp
Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.
link /LTCG crafty.obj egtb.obj /out:crafty.exe
./link: extra operand `egtb.obj'
Try `./link --help' for more information.
NMAKE : fatal error U1077: '.\link.EXE' : return code '0x1'
Stop.
C:\Crafty>
Strange.
Thanks, I'll dig around for 2005...
Still with /LTCG
C:\Crafty>nmake -f makefile.xp
Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.
link /LTCG crafty.obj egtb.obj /out:crafty.exe
./link: extra operand `egtb.obj'
Try `./link --help' for more information.
NMAKE : fatal error U1077: '.\link.EXE' : return code '0x1'
Stop.
C:\Crafty>
Strange.
Thanks, I'll dig around for 2005...
-
- Posts: 173
- Joined: Sun May 11, 2008 7:43 am
Re: Visual Studio 2010... & Crafty
Got it! 
Another issue came up, where accessing crafty.obj was denied. This was simply solved by running the VC Command Line Tool -> Run as Administrator 

Code: Select all
Common Issues/Bugs/Glitches And Solutions
Applies to Visual C++ 2005 Express:
If you run into an issue when running develop.py similar to this:
1>Linking...
1>link: extra operand `/ERRORREPORT:QUEUE'
1>Try `link --help' for more information.
1>Project : error PRJ0002 : Error result 1 returned from 'C:\cygwin\bin\link.exe'.
You may have not configured Visual Studio properly. The articles in this wiki in regards to the setup of executable paths do not specify an order or priority, but you must make sure that the CYGWIN executable path is set lower in the list than the VC++ paths, otherwise develop.py winds up executing the CygWin Link.exe which won't work.
This issue has also been seen when using the Windows Command Prompt instead of the command prompt within VC++ (Visual Studio 2010?).
