Visual studio 2013 auto complete for project files - c++

My directory structure seems to be messing up the auto-complete for project created files. Here's a hierarchical representation (The project is called "Asdf"):
Asdf
src
Asdf (Contains the source files for the project.)
SDL (Contains include files for SDL.)
vc (Contains the actual visual studio solution file and configuration files.)
Any ideas on how to fix this?
Additional note: Project files are included in Project Properties->Include Directories. The Visual studio 2013 is the software in question.

Related

Change Visual Studio 2017 .props location file

I am new in visual studio 2017
I have imported a qt project file (.pro) and created a .vcxproj file with QtVSTools, my problem is that it generate a lot of intermediate files including a
$(Configuration)/qmake/qtvars_(Platform)_(Configuration).props file.
My question is how to customize this file location to a desired eg.
$./build/(Configuration)/qmake/qtvars_(Platform)_(Configuration).props
I have already search for this customization in the project properties with no luck.
I really appreciate your help in finding a solution.

C++ visual studio community source files

I would like to know how to find the source files for visual studio projects as I need to upload my projects for marking, I received the message is quotes below from my teacher but I am not sure where to find the .cpp and the .h / .hpp files in my visual studio project/lab folders. I am assuming with just these files he will be able to open the projects in programs other than visual studio?
"Please just upload the source files if you can (.cpp and .h / .hpp file) – I don’t require additional Visual Studio Packages etc."
Thanks
By default your projects are stored in "%UserProfile%\Documents\Visual Studio 2015\Projects" or similar depending on your version of IDE (ie. which Visual Studio version You use).
Assuming your project is named Project1, it's directory will be named the same and within this directory you will find yet another directory with the same name (so in default scenario it will all sum up to "%UserProfile%\Documents\Visual Studio 2015\Projects\Project1\Project1". Within this directory you shall find source (.c, .cpp) and header (.h, .hpp) files.
In most cases those files contain all the work you've done on the project. Most of other files populating project directory are non-essential, template, auto-generated or debug/release process products or by-products.
Hence to examine and judge what was written in programming language or rebuild your project in any other IDE or outside of IDE, those files would be all that's necessary.

How to configure addition library folders for Visual Studio 2013?

I have legacy, non Visual Studio project. Its structure is:
-root_folder
-root_folder/folder1
-root_folder/folder1/main.cpp
-root_folder/folder1/fun.cpp
-root_folder/folder2
-root_folder/folder2/bar.cpp
-root_folder/folder2/foo.h
.... many different folders
I work with project under folder1.
root_folder/folder1/main.cpp:
#include <folder2/foo.h>
....
I have the error: Error can not open source file "folder2/foo.h>".
Of course, I added the folder root_folder in Project -> properties -> c/c++ section -> additional include directories.
I cannot change this source code, so I need right configure project settings.
Also, I have one more problem. Visual studio does not show my folders structure. It just show folder Source Files, which contains all thousands files.
Visual Studio looks in "VC++ Directories" -> "Include Directories" for the include files specified in angle brackets.
You need to add you path there:
https://msdn.microsoft.com/query/dev12.query?appId=Dev12IDEF1&l=EN-US&k=k%28VS.ToolsOptionsPages.Projects.VCDirectories%29&rd=true
P.S. Just noticed that this answer was given earlier, and rejected.
However, it most certainly works; tested with VS2013.

Using pthread in c++ on Visual Studio 2013

I am trying to use the pthread library on windows. I downloaded a zip with a Pre-built.2 folder in it and followed the instruction.
What I have done so far:
all .h files from POSIX\Pre-built.2\includeinto MS VS2013\VC\include folder
all .dll files from \dll\x86dll\x86 into VC\bin
all .lib files from lib\x86 into VC\lib
In Property->Config->Linker->Input->Additional Dependencies, pthreadVC2.lib;pthreadVCE2.lib;pthreadVSE2.lib;%(AdditionalDependencies) // pthread.lib already in Inherited values
I included pthread.h inside my program and when trying to build solution, the following error appears:
Error 1 error LNK1104: cannot open file 'pthread.lib'
Can anyone help me out? Thanks.
EDIT:
The Include Directories and Library Directories are
A:\Program Files %28x86%29\Microsoft Visual Studio 12.0\VC\include;$(IncludePath)
and
A:\Program Files %28x86%29\Microsoft Visual Studio 12.0\VC\lib;$(LibraryPath)
respectively now. But I still get the same error message.
Add the folder containing the LIBs to Configuration Properties -> VC++ Directories -> Library Directories.

Adding .mes and .mc files to a c++ project in visual studio 2010

I am trying to compile a piece of code to a static library that was developed using visual studio version 6 in vs2010. During compilation I see errors related to error codes that were defined in .mes and .mc files as I didn't add these files to source files or header files, but they are part of include directories.
Can some one let me know how to add .mes and .mc files to a vs 2010 project.
Thanks in advance.