visual c++ - Running MSVC via CMake using ssh to Cygwin works if using a password to login but not with a public key -
we have windows 7 desktop we're hoping use run automated tests of windows port of our c++ code. it's using cmake build system, compiling visual studio 10.0, if logged in locally. automated test system we're using needs ssh build machines using public-key authentication, i've installed cygwin , have sshd running service in separate account (cyg_server). can connect fine, logging in build account using password, , run build without issues. however, if add public-key authentication, can still log in fine, build fails, if i'm logged in , running build manually, it's login interactive bash shell working case! error message is
3>link : fatal error lnk1101: incorrect mspdb100.dll version; recheck installation of product
for every link step.
what different in environment between password , public-key authentication that's causing this? note else identical between working , failing case - authentication method has changed, , repeatable it's not running builds in particular sequence that's @ fault.
probably need run cyglsa-config
in cygwin bash shell , reboot system. might need start shell right-clicking cygwin shell shortcut , selecting "run administrator", otherwise cyglsa-config
may fail permission error. had same issue (with different version of visual c++), , cyglsa-config
fixed it.
the following page cygwin documentation explains issues related windows security:
http://cygwin.com/cygwin-ug-net/ntsec.html
the relevant stuff starts in section called "switching user context". mentions default approach has problems visual c++.
Comments
Post a Comment