C++ via Visual Studio Video - "Include file not found in browse.path." C/C++ [1, 1] - c++

I have read numerous examples and videos to learn how to fix this to no avail. I am new to using Visual Studio Code and I seem to not be able to resolve this issue independently. I've reset my settings, deleted and reinstalled, etc. One common occurrence I am seeing is to access "MingGW", which I apparently do not have installed on my computer and/or have access to. I am in need of great assistance!

Apparently, the error is related to the fact that you don't have a compiler installed on your machine (or VS Code can't find its directory).
You can download the compiler from its official website here:
Mingw-w64

The answer is in your question ""MingGW", which I apparently do not have installed on my computer and/or have access to"
Install MingGw, and then compile.
Here is a Link to help you get started on setting up the MinGW for Visual Studio

It sounds like you are also new to C++. Are you on Windows? (I will assume so since you explicitly mentioned MinGW).
MinGW is an older version of the compiler, and I would encourage you to install the official Microsoft Sdk instead - that is, if you want the easy road.
Are you using Visual Studio or Visual Studio Code? They are two very different application, and if you are new to either programming or C++ I would heartily recommend Visual Studio as it does all the "complicated things" for you.
There is a difference between installing Visual Studio Code (a text editor) and a compiler (MinGW, MSVC++, clang, GCC, Intel, etc.).
Btw., I know your pain - we have all been there! Don't expect things to be easy in programming, it takes some time. This is especially true for C++ which has more complications than other languages (but worth the effort!).

Related

Visual Studio 2017 wont show c++ template/extansion

I am trying to use Microsoft visual studio IDE to run my c++ code, however, when I go to create a project, I do not see the option for a c++ project. I tried reinstalling the program to see if I could somehow install the package/extension however it just won't seem to come up.
The only templates that appear are in c# or f#.
If someone could please lead me into the right direction so that I can fix this, it would be great. Thank you.
I don't see any mention of C++ in the release notes.
According to this post on MSDN, there is no C++ support in the Mac version of Visual Studio. It contains links to instructions for using Visual Studio Code, as well as the option to install a VM running Windows.
Apparently Visual Studio Code supports C++ projects, since it can execute external tools. The Microsoft Visual C++ build tools are free for Windows, but I don't think there is a version for the Mac, so some other external compiler is necessary.

x64 if Visual Studio C++ 2012?

I have been using SDL with Visual C++ for a while, mostly making practice games, but I find that I can't give the game to other people unless they have Visual C++ themselves. One problem that I found using a Dependency Tracker was that the source files and such used both x86 and x64. After looking through, I found that my Visual Studio source files were all in x64, so naturally I went through and modified my SDL files to be the x64 package instead of the x86. After fussing about how it still insisted on not working, I found out that the program that I was exporting was in x86 all along! I've been trying since to get it to export in x64 since, but I simply don't know how. Can somebody help me do this?
Oh well, this question is a bit hard to understand for me. It looks, like MSalters suggested, that you mix up some terms.
The source of your problem is probably just the missing Visual Studio Redistributable on the target computer.
You can get it here. Not that this is the redistributable for VS 2012 Update 1. There are also different versions for x86 and x64 (also arm). Depending on what your output is, you have to deliver the right version of the redistributable with you programms.

Using different compiler in Visual Studio

This maybe a beginner question but could not find proper answer on the internet.
I am curious can I use some other compiler (which I like) in Visual Studio 10?
As of Visual Studio 2010, it is conceptually possible to integrate another compiler. In the book ‘Inside the Microsoft Build Engine, Using MSBuild and Team Foundation Buid’ 2nd edition, on page 338, the chapter ‘Adding a New Platform and Platform Toolset’ the process of adding gcc to visual studio is explained.
However, while it is possible, it has always remained as a concept. To my awareness, nobody has actually been up to the task and publicly disclosed the results. But even with this support, you'd still be lacking debugging facilities. Which would require your compiler of choice to generate .pdb files and/or extend visual studio with a new local debugger
In summary it's quite a venture
You can use other compiler Intel c++ in VS. I don't think any other compiler supports VS.The main reason behind it is lack of plug-ins in VS. But you can use cmake scripts to compile your code in different compilers. With eclipse you can use most of the compilers (VS,gcc). Code blocks also allows you to choose the compilers.
Yes,you can use Intel C++,and even MATLAB 7.1 or later for sure..here is a reference to use MATLABIt gives a step by step procedure to use MATLAB with VS
You can also write Java programs and include javac compiler for it...you can refer this if needed..Including javac with VS
I kno this is surely possible from VS 2010 but not sure for the b4 editions..hope it helps..

setup visual studio express for arm

I'd like to compile panda3d for arm and downloaded the c++ version visual studio express. Sadly the last time I used c++ is about 4 years ago. I googled how to get the project to compile to arm but I only found this:
http://www.ehow.co.uk/how_7675465_add-support-visual-studio-express.html
It looks pretty straightforward but the problem is: I'm using the german version of visual studio and there are no such options. I tried to download the english version but the installer detected my systems language and fell back to german. I searched all menus I could find for proper compiler options but couldn't find anything. Now I wonder: The options can not simply have vanished in the german version. Are you having similar experiences ? Can you give me advice how to setup arm support or where to find the right settings ? Even better, if you're german, too, can you check if you have appropriate menus ?
Thank you for your time
UPDATE:
I'm using windows 7 64bit and have tried visual studio c++ express 2010 and visual studio c++ express 2008. The device I'd like to target will run with a nvidia tegra 3.
UPDATE #2:
I'd like to target a linux distro, most probably ubuntu.
If there's no support for arm in visualstudio I could switch to any other IDE just as well. Actually I only need that one compilation and figured using Visual Studio would be least problematic. If there's another easy alternative I'd appreciate it, if you told me.
That's probably unrelated to your German version; my English setup of VS2010 doesn't have that option either. But what precise platform are you targetting? The different Visual Studio versions are tied in with particular Windows CE versions, and compatibility is rather limited.
Not sure if OP is aware, but targeting a linux distro doesn't play well with visual studio.
Definitely wrong path.
IMO, using Visual Studio is the best tool for development, with pretty good on-device debugging capabilities, even though ARM support is quite limited, it's still is one of the best tools. But you won't be able to make anything with for a linux distro, it will work only as an advanced text editor.

How do I install the minimal facilities of Visual Studio 2008 sufficient for building C++ applications using Visual Studio 2010's multitargeting?

Dev10 has facilities for using the C++ compiler shipped in Orcas. However, I really don't need to install the full IDE -- I merely need to use Orcas' compiler because I need to support Windows 2000.
What's the simplest way of installing just the bits required to build using Orcas' toolset in Dev10?
Given your condition, I'd say just install VS2008 and use it. While it's not what you want it's the fastest path to working.
What about setting up Visual studio 2008 to work with Orcas compiler ?
I'm sorry I don't know about this very compiler, but I know it's possible to use VS2008 with a different compiler, because I tried it.
You can find plenty of doc on running VS2008 with, for example, the Windows SDK compiler or VS2010 compiler. For example that links explains that quite well : http://www.codeproject.com/Tips/105011/Using-Visual-Studio-2008-IDE-with-Visual-Cplusplus.aspx
HTH