[M3devel] cl on windows

Jay K jay.krell at cornell.edu
Thu Jul 30 21:35:13 CEST 2009


Cygwin is fine. Really. You can mix them.
The problem is that both cl.exe and mspdb90.dll need to be in path, and VC link.exe needs to be ahead of Cygwin link.exe, or delete Cygwin link.exe.


C:\Users\jay>which cl
/cygdrive/c/msdev/90/VC/BIN/cl
 
C:\Users\jay>which gcc
/usr/bin/gcc
 
C:\Users\jay>which cvs
/usr/bin/cvs
 
C:\Users\jay>gcc -v
...
gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
C:\Users\jay>cvs
Usage: cvs [cvs-options] command [command-options-and-arguments]
...
 
C:\Users\jay>cl
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.21022.08 for 80x86
Copyright (C) Microsoft Corporation.  All rights reserved.
usage: cl [ option... ] filename... [ /link linkoption... ]
 
 
C:\Users\jay>which mspdb80.dll
/cygdrive/c/msdev/90/Common7/IDE/mspdb80.dll
 
C:\Users\jay>which link
/cygdrive/c/msdev/90/VC/BIN/link

 - Jay

________________________________
> Date: Thu, 30 Jul 2009 12:57:38 -0400
> From: rcoleburn at scires.com
> To: m3devel at elegosoft.com
> Subject: Re: [M3devel] cl on windows
>
>
>
>
>
>
>
> Olaf:
>
>
>
> I don't think you want to be doing this with cygwin. That would mean you are executing in a cygwin environment, not a true Windows-only environment.
>
>
>
> For the Visual Studio command line to work, you have to run the script that sets up the environment variables. From the Windows Start menu, there should be a menu tree labeled "Visual C++ 9.0 Express Edition-->Visual Studio Tools-->Visual Studio 2008 Command Prompt". Choosing this item from the menu will bring up a command prompt with the environment set up properly.
>
>
>
> Alternately, you can run the following command from an existing command prompt window: "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat x86"
>
>
>
> Note that the above command line assumes you have installed Visual C++ 2008 Express Edition. The paths may be different for different versions of the software.
>
>
>
> Of course, if you use my CMD files (e.g., cm3PromptHere.CMD or cm3SetupCmdEnv.CMD), they do this all for you.
>
>
>
> Regards,
>
> Randy Coleburn
>
>>>> Olaf Wagner 7/30/2009 12:30 PM>>>
> kind of consistent user interface:
>
> elego at wagner ~/work/cm3
> $ type cl
> cl is hashed (/cygdrive/c/Program Files/Microsoft Visual Studio 9.0/VC/bin/cl)
>
> elego at wagner ~/work/cm3
> $ cl
>
> elego at wagner ~/work/cm3
> $ echo $?
> 53
>
> elego at wagner ~/work/cm3
> $ cl -version
>
> elego at wagner ~/work/cm3
> $ echo $?
> 53
>
> elego at wagner ~/work/cm3
> $ cl -help
>
> elego at wagner ~/work/cm3
> $ echo $?
> 53
>
> elego at wagner ~/work/cm3
> $ cl /help
>
> elego at wagner ~/work/cm3
> $ echo $?
> 53
>
> Can it do something else?
> Visual Studio Setup completely broken?
>
> Olaf
> --
> Olaf Wagner -- elego Software Solutions GmbH
> Gustav-Meyer-Allee 25 / Gebäude 12, 13355 Berlin, Germany
> phone: +49 30 23 45 86 96 mobile: +49 177 2345 869 fax: +49 30 23 45 86 95
> http://www.elegosoft.com | Geschäftsführer: Olaf Wagner | Sitz: Berlin
> Handelregister: Amtsgericht Charlottenburg HRB 77719 | USt-IdNr: DE163214194
>


More information about the M3devel mailing list