Re: Question about link.exe?
Chris Howell wrote: What I want is link to be the path that is found under my BIN directory of my DevStudio install. However possibily because they're the same name when I query link, or try and use it to make a dll. Bash thinks I am using link to make a symbolic link as opposed to a dll. Your PATH evidently has the Cygwin tools before the VC++ tools, so it's finding /usr/bin/link before VC++'s link.exe. Instead of using the VC++ Command Shell, I always start from the Cygwin shell. Then when I need to use the VC++ command line tools, I use the following script to create a VC++ subshell, which I call vcvars9: 8 - cut here -- 8 #!/bin/sh export VSDIR=c:\Program Files\Microsoft Visual Studio 9.0 export VCDIR=$VSDIR\VC WSDKDIR=c:\Program Files\Microsoft SDKs\Windows\v6.0A PSDKDIR=$VCDIR\PlatformSDK ATLDIR=$VCDIR\ATLMFC COMDIR=$VSDIR/Common7 export INCLUDE=\ $ATLDIR\include;$VCDIR\include;$PSDKDIR\include;$WSDKDIR\include export LIB=$ATLDIR\lib;$VCDIR\lib;$PSDKDIR\lib;$WSDKDIR\lib export LIBPATH=$ATLDIR\lib export PATH=\ $VCDIR/bin:$PSDKDIR/bin:$COMDIR/ide:$COMDIR/Tools:$COMDIR/Tools/bin:$PATH echo Say 'exit' to leave VS2008 shell and restore Cygwin environment. /usr/bin/bash --rcfile ~/.vcvars9rc 8 - cut here -- 8 In ~/.vcvars9rc, I have just a single line to change the prompt string to remind myself that I'm in a subshell: PS1='VS2008: \W \$ ' On exiting the shell, your previous Cygwin environment is restored. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Question about link.exe?
I am running on Vista, and what I am doing is I open up a Dev Studio 2008 command shell. From that command shell I launch cygwin/bash... Things like cl.exe are inherited from the first shell I've opened in the bash environment. What I want is link to be the path that is found under my BIN directory of my DevStudio install. However possibily because they're the same name when I query link, or try and use it to make a dll. Bash thinks I am using link to make a symbolic link as opposed to a dll. Any suggestions or help would be appreciated. Cheers Chris Howell Software Engineer the PYXIS innovation inc Kingston Ontario, w: www.pyxisinnovation.com p: 613-389-3430 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: Question about link.exe?
I found that setting the complier and linker (all the tools, actually) to the full path is the most reliable means to ensure the correct executables are picked up. ie. CC = full_path_to_ds_8_bin/cl.exe LINK = full_path_to_ds_8_bin/link.exe you can use the registered environment variables for DS to build the full path up. (can't remember the name right now, I'm at home). -lee Chris Howell wrote: I am running on Vista, and what I am doing is I open up a Dev Studio 2008 command shell. From that command shell I launch cygwin/bash... Things like cl.exe are inherited from the first shell I've opened in the bash environment. What I want is link to be the path that is found under my BIN directory of my DevStudio install. However possibily because they're the same name when I query link, or try and use it to make a dll. Bash thinks I am using link to make a symbolic link as opposed to a dll. Any suggestions or help would be appreciated. Cheers Chris Howell Software Engineer the PYXIS innovation inc Kingston Ontario, w: www.pyxisinnovation.com p: 613-389-3430 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/