[racket] MSB8012 conversion error compiling Racket with VS2010

From: Cristian Baboi (cristian.baboi at gmail.com)
Date: Sat Jun 16 09:25:51 EDT 2012

In racket.sln
- configuration properties/general/output directory: ..\..\..\
- configuration properties/general/target name: RacketCGC
- configuration properties/build events/post-build event/command line:

1) if exist "$(TargetPath)" goto :MzOK
2)    echo Error: did not find $(TargetPath)
3) exit 1
4) :MzOK
5) "$(TargetPath)" -cu ..\..\racket\mkincludes.rkt "$(TargetDir)/include/"  
..\..\racket ..
6) if errorlevel 1 exit 1
7) cd ..\..\racket\dynsrc
8) mkmzdyn.bat
9) cd ..\..\worksp\racket

has an extra / in line 5) after $(TargetDir)
- the debug targets don't work

Some stdafx.h files required changes of _WIN32_WINNT macro
#define _WIN32_WINNT 0x0400 gives errors in ATL

On Windows7 x64 I get some "Unable to register library":

raco setup: --- post-installing collections ---
raco setup: post-installing: help
raco setup: post-installing: mred
raco setup: post-installing: mysterx
MysterX: Unable to register library myspage.dll   <---------------
MysterX: Unable to register library myssink.dll   <---------------
raco setup: post-installing: mzcom
raco setup: post-installing: mzscheme
raco setup: post-installing: racket/gui


În data de Fri, 15 Jun 2012 21:14:31 +0300, Cristian Baboi  
<cristian.baboi at gmail.com> a scris:

> After converting solution files from VS2008 to VS2010, I get errors like
>
> MSB8012: $(TargetName) ('libmzgc') does not match the Linker's  
> OutputFile property value '..\..\..\lib\libmzgcxxxxxxx.dll'  
> ('libmzgcxxxxxxx') in project configuration 'Release|x64'. This may  
> cause your project to build incorrectly. To correct this, please make  
> sure that $(TargetName) property value matches the value specified in  
> %(Link.OutputFile).">
>
>
> in the conversion log file and build.bat (from Racket-5.2.1\src\worksp)  
> gives errors building racket.sln
>


Posted on the users mailing list.