How to choose compiler/VisualStudio git bash should use? #3401
Unanswered
SpaceCowboy850
asked this question in
Q&A
Replies: 2 comments 2 replies
-
I'd check your path variable, which is the most likely culprit for these kinds of issues (selecting the wrong version of a program with the same name). |
Beta Was this translation helpful? Give feedback.
1 reply
-
Typically if sln files are used, it's defined by a) what version the
extension is linked to and b) the sln specifies a VS version in it's own
xml (written by the VS edition that was used to save the sln).
Option c) is via environment variables and path, this is what the
vcvars.bat and similar batches from VS use to initialize a specific
compiler environment. You typically do not have this in your global
environment but the batch file is usually called (sourced) in scripts.
If an sln isn't used, e.g. if cmake is used, then cmake rules apply, which
i am net very familiar with.
…On Mon, Aug 30, 2021, 7:13 PM Brandon Rowlett ***@***.***> wrote:
When I echo my path at the git-bash prompt, I see nothing about
"community" or anything...that was my thought as well prior to posting, but
didn't see anything in my environment variables that was a red flag. I'll
look again.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3401 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABZH5SBUTJFQJ5CB2BSBZM3T7QGCDANCNFSM5DCVPOFA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have two versions of visual studio installed. One is the community version and the other is the professional version. The community version fails at compiling cuda, and I think the professional version will work (due to both being on different versions of visual studio).
However, I cannot figure out how to choose which one git-bash is using, and it is defaulting to the community version. I've done a bit of googling and can't seem to find how to change this behavior. Any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions