l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2006 Dec 15 18:55

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
[vox-tech] [OT] Running/compiling win32 executables from cygwin
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vox-tech] [OT] Running/compiling win32 executables from cygwin

Is it possible to run win32 executables from a cygwin xterm?

I'm trying to figure out how to compile stuff using VC++ from the command
line at work.  When using the "command prompt", I need to run a batch file
to set up the environment:

   $ c:\Program Files\Microsoft ... 2003\Common7\Tools\vsvars32.bat

   cl /EHsc foo.cpp
   Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86
   Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.

   Microsoft (R) Incremental Linker Version 7.10.3077
   Copyright (C) Microsoft Corporation.  All rights reserved.


However, from cygwin, it appears to fail silently:

   $ vcvars32.bat

   c:\Documents and Settings\psalzman\home\programming\cmdline>"c:\Program
   Files\Microsoft Visual Studio .NET 2003\Common7\
   Setting environment for using Microsoft Visual Studio .NET 2003 tools.
   (If you have another version of Visual Studio or Visual C++ installed and
   wish to use its tools from the command line, run vcvars32.bat for that

   $ cl foo.cpp
   $ ls
   Makefile*  foo.cpp

I'd rather work in cygwin since I'm more comfortable and familiar with that
environment.  Is it possible to use cl.exe from cygwin?  Maybe it's a matter
of environment variables?

Also, does the "command prompt" have an equivalent to a .bashrc?  If I
*have* to use it to do command line compiling, I'd rather change my prompt
to "$ " and run vsvars32.bat automatically since the only time I'll be using
the "command prompt" is when I'm compiling my programs.

They gave us WinXP at work, if the OS makes a difference.

vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Appahost Applications
For a significant contribution towards our projector, and a generous donation to allow us to continue meeting at the Davis Library.