I have a host system and a virtual machine and i am trying to setup similar environment in both.
I installed cygwin and visual studio 10 also.
I faced issues in my build and I finally managed to find one difference between my host and vm.
in my host when in cygwin shell when i enter cl I get the following:
$ cl
Microsoft (R) C/C++ Optimizing Compiler Version 16.00.40219.01 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
usage: cl [ option... ] filename... [ /link linkoption... ]
But in my vm I am getting no output.
$ cl
(VM is 32 bit and host is 64 bit)
Can someone tell me what setting I might have missed out on?
First thing you should do is to find out what
clis within the CygWin where it’s not working. Execute the commands:and find out what it comes back with. If it’s anything other than the MS compiler, that’s your problem.
Beyond that, find out what the erroneous environment does when you try to run
clfrom acmdwindow rather than CygWinbash.Based on your comment:
This is definitely wrong for a 32-bit VM. You are attempting to use the 64-bit AMD compiler on a system that doesn’t support it.
You should change the path to use a 32-bit compiler. However, I’m not sure you have one since all of
amd64,ia64,x86_amd64andx86_ia64seem to indicate 64-bit compilers.The one directly under
binmay be okay, you would have to test it to be certain (possibly withdumpbinwhich should be able to tell you the file format of the executable).