|
Yeah, see I wouldn't have made that decision. I would have included "Add build tools to environment" with every version, and made it replace the old PATH variables and such. More work, but way better in the end. I want to say (but it's a guess) that this is what happens when GCC is installed, or something similar, but I could be wrong.
Real programmers use butterflies
|
|
|
|
|
gcc (on Linux) generally installs different versions as symlinks in /usr/bin to architecture/version specific executables. Each symlink has the version appended - this is what my /usr/bin contains:
lrwxrwxrwx 1 root root 22 Dec 4 2019 /usr/bin/gcc-7 -> x86_64-linux-gnu-gcc-7
lrwxrwxrwx 1 root root 22 Mar 10 2020 /usr/bin/gcc-8 -> x86_64-linux-gnu-gcc-8
lrwxrwxrwx 1 root root 22 Apr 23 2020 /usr/bin/gcc-9 -> x86_64-linux-gnu-gcc-9
And then gcc (with no version) is a symlink to one of the versioned symlinks (e.g. gcc -> gcc-8 ). All this means that using a specific (major) version of gcc is pretty simple...
If you want to compile 32-bit code rather than 64-bit, then install g++-multilib and compile with the -m32 flag.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Randor wrote: Then there were some guys (like me) that would have VC6,VS2005,VS2008,VS2010,VS2012.NET,VS2013 all installed on the same workstation
As far as I'm concerned, VMs are the best thing to have been invented to keep my build systems clean and manageable. Separation of concerns and that type of thing.
My understanding is that containers are intended to take things one step further. Maybe it's because I'm now set in my ways, but nothing I've read so far about containers actually seem to make things simpler still to make me want to change my methodology.
Same with multibooting. Why bother? In this day and age, as far as I'm concerned, rebooting is a sin. If someone has to abandon what they're working on to boot another OS, IMO they're doing it wrong.
|
|
|
|
|
Yeah,
The only time I use a VM is when I am doing device driver development. That way when I break the operating system I can just rollback. It's also a necessity for attaching WinDbg and debugging from the host machine.
Regarding the VC6,VS2005,VS2008,VS2010,VS2012.NET,VS2013 setup... I've got a second workstation right next to me with that setup. There are zero problems running all those versions of visual studio as long as you do not have default build tools in your %PATH% environment variable.
dandy72 wrote: Same with multibooting. Agree, my workstation is too fast, I can run 3 operating systems in a VM concurrently and it doesn't seem to impact anything. The solid-state drives make a huge difference. I don't even need this much speed.
|
|
|
|
|
Randor wrote: I can run 3 operating systems in a VM concurrently and it doesn't seem to impact anything
My current VM host is an i7-4820K (Ivy Bridge generation, I believe), overclockable but I never bother with this sort of stuff. While it's getting long in the tooth in terms of age, I currently have 9 VMs running simultaneously as I'm writing this (roughly twice as many powered off), with individual VMs being allocated anywhere between 2 and 16GB of RAM.
With a total of 64GB of RAM, memory limitations is a problem long before CPU performance. Mind you, I've never run (for example) VS natively on the host, so I don't have figures to compare with, but suffice it to say that I've never felt that anything running on any of the VMs was "slow" in the sense that I'd be expecting anything to run much faster if it was running on the raw hardware.
And really, the only reason my VM host was upgraded from a Sandy Bridge CPU is that the board it was sitting on had a limit of 32GB of RAM, and I was constantly running out. That machine got repurposed from a VM host into a gaming rig. My current VM host will probably go through the same path, once I decide my gaming machine is getting too slow. Right now, I fully expect that, when I decide to replace the machine, it'll be because I want to double the RAM rather than anything to do with CPU performance.
|
|
|
|
|
Moving in that direction myself. The tools out there you think you want can so fry your machine. I cite two examples:
1) Platform Builder from MS. After installing, wiped my build environment. Never again.
2) Intel Vtune. Ouch again
You just have to protect yourself. Rollbacks don't cut it any longer.
Charlie Gilley
<italic>Stuck in a dysfunctional matrix from which I must escape...
"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
|
|
|
|
|
why, and I ask in all professional seriousness, would you want an application using a variety of compilers and linkers and hoping Microsoft got it right?
Sounds like a recipe for a) suicide b) grief c) project failure d) infinite income (I'm a contractor).
Charlie Gilley
<italic>Stuck in a dysfunctional matrix from which I must escape...
"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
|
|
|
|
|
Hmmmm,
charlieg wrote: would you want an application using a variety of compilers and linkers Due to how C++ dependencies work... (and Windows SDK incompatibilites/changes) most project maintainers use the same compiler version for patching and bug fixing for older projects. If the software you are maintaining is 10 years old... then it's probably running on older hardware and operating systems.
|
|
|
|
|
CALL "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall" x64
in a command script does it for me (or x86 if you want 32 bit).
I can then run the compiler (cl) from the command prompt. I have tried to use VSCode extensions and projects but never managed to get it to work.
|
|
|
|
|
Yes I know how to do that.
That is not the problem.
The problem is that that kills workflow. I can no longer click on my project folder and go "Open with VS Code" because Microsoft stinks.
If microsoft didn't stink (like that will ever happen) they would run vcvars from inside VS Code when you're using the C++ extension
Real programmers use butterflies
|
|
|
|
|
You're not the only person to feel that pain...
As it happens, I use MSVC with VS Code for most of my development. Intellisense works fine, and I build from the integrated terminal. This relies on a batch script I wrote years ago that would call the appropriate Visual Studio setup script before either dropping back to the CMD prompt or jumping into a bash shell (used to be msys2 bash, now I use WSL bash). The way I've configured it, VSCode uses the script to set its integrated terminal up for MSVC2017/x86.
Here's the Visual Studio 2015 part of that script's code (my script supports MSVC 2003, 2008, 2010, 2013, 2015, 2017 and 2019 - fortunately, 2013 is the oldest one I use at all now!):
if not exist "C:\Program Files (x86)\Microsoft Visual Studio 14.0\vc\vcvarsall.bat" (
call :not_installed "Visual Studio 2015"
exit /b 1
)
rem %~1 is either x86 or amd64
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\vc\vcvarsall.bat" %~1
goto :eof
Yes, hard-coded paths suck, but ¯\_(ツ)_/¯
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
I like the way that tweet described the batch file.
Also, thanks!
Real programmers use butterflies
|
|
|
|
|
Hi Stuart,
Regarding your tweet/twat...
The Windows 10 SDK[^] is a standalone development environment. Just mount the ISO and start developing.
Best Wishes,
-David Delaune
|
|
|
|
|
honey the codewitch wrote: Tell me: Why in the world would *anyone* think it was a good idea to install MSVC++, not put it in the PATH, and then make it near impossible for you to do it yourself? Why? Mostly due to the same as always...
Somewhere in the process a manager comes with totally bizarre requirement and additionally ordering a magenta icon opening the pandora box. Then all technicians have to interrupt what they are doing and a time later when coming back to the developing process with 5 different "what was I doing?" ending a time later in some critical "oops, I forgot XX". Then it continues with "damn it... without XX I can't YY... I will need to workaround it with ZZ" and having to ship the release version with an unfinished chaotic version...
Is not that obvious?
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
The character I'm having a problem with is the double quote. I tried using [\"] but that didn't seem to work.
I'm trying to get a certain size and thickness zip bag (7" wide x 5" deep x 4 mil thick), something I was able to get a few years ago, but now that I've run out of the 25 that I had gotten, I'm looking to get more.
|
|
|
|
|
Use "feet" or inches or whatever fancy unit " is supposed to stand for.
This is what happens when one does not want to use proper units.
*sits back and grabs popcorn*
|
|
|
|
|
Ah. You aren't a imperial measurements fan than?
Quote: In metric, one milliliter of water occupies one cubic centimeter, weighs one gram, and requires one calorie of energy to heat up by one degree centigrade—which is 1 percent of the difference between its freezing point and its boiling point. An amount of hydrogen weighing the same amount has exactly one mole of atoms in it. Whereas in the American system, the answer to "How much energy does it take to boil a room-temperature gallon of water?" is "Go %^$# yourself" because you can't directly relate any of those quantities.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I once overhead a conversation from someone stating that the metric system is awful, citing as an example that if you wanted a piece of wood 12ft (4yd) x 1 1/2in x 2in (a common size) you would have to ask for 3.6576m x 38.1mm x 50.8mm.
quote: Whereas in the American system, the answer to "How much energy does it take to boil a room-temperature gallon of water?" The answer is 'not the same as an imperial gallon'
Did you know that Americans only have approx. 6 pints of blood, whereas Britons have approx. 8 pints of blood? (Due to the difference size of their unit of 'pint')
|
|
|
|
|
jsc42 wrote: Did you know that Americans only have approx. 6 pints of blood, whereas Britons have approx. 8 pints of blood? (Due to the difference size of their unit of 'pint')
US pints are smaller than Imperial pints - 473ml vs 568ml respectively - so I'd expect that to be the other way round.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Don't be so nitpicky...
he is just applying the commutative property (wrong or not is another topic)
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
jsc42 wrote: The answer is 'not the same as an imperial gallon' What did you expect?
They don't even speak the same english...
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
jsc42 wrote: Did you know that Americans only have approx. 6 pints of blood, whereas Britons have approx. 8 pints of blood? (Due to the difference size of their unit of 'pint')
The other two pints are coffee.
|
|
|
|
|
I am trying my best to find a way to become offended by all that but failing. Perhaps you should start with the cubit. We tried to convert to the metric system some time back but failed, starting with the standard 19" rack.
If you can keep your head while those about you are losing theirs, perhaps you don't understand the situation.
|
|
|
|
|
That metribigotry - you disappoint me.
Think, for a moment, about those who read languages such as Chinese. It actually stimulates the brain functions.
So it is with us in the US: we've resisted your comparatively-no-brainer system for one that stimulates our intellect and maintains a romance long missing from the dry solemn environment of Europe, and, at the same time, not only maintains more easily divisible subunits (without going to fractions in day-to-day usage) but even, as I've pointed out several times, maintains a base-two relationship as one progress upwards from the ounce.
Bah! So far as I'm concerned, you've only done half a BREXIT.
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Everything I've ever seen about Google searches says the same thing: Google ignores punctuation completely, except for quotes, colon, plus, and minus - and they have special meaning and can't be escaped. And I think that Bong does the same, which makes sense when you think about it.
Unless one of the other engines (the ones that actually search for themselves, that is) does, you aren't going to find it easy.
Have you considered going back to your last supplier?, or checking FleaBay?
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|