Cannot open source files, trying to update include path - header-files

I am using VS code to practice for my c++ exam. I had to switch computers and now my compiler cannot open any of the standard c++ libraries. It says to update the include path, but I don't know what to include when updating. I have included a picture of the error message and wher it sends me with the quick fix.
Error message
Where I am sent by the quick fix button

Related

C++ Intellisense not always working in vscode

While in the middle of working on my app I had an odd issue and, while trying to figure it out, I noticed right clicking anywhere on my code doesn't give me the usual options.
The below image shows what my options are for anything that I click. I should have double or more options to choose from, like opening the document I've right clicked.
The odd issue (which may or may not be related) I had before this started happening was I that I just created a new header and source file. In the source file, VSCode was complaining that it could not find the new header file that I included. I tried including it in a different file, and it could find it there. I'm very confused as to why two files in the same directory are getting different results when they include the same header file.
Does anyone know what happened, and how to fix it?
I have restarted VSCode multiple times, as well as my computer.
I do not know how or why, but while editing code, my c++ extension was uninstalled.
Installing it again has resolved the issue.

How Can I Fix This LNK1104 Error in Visual Studio?

First off, allow me to give you some background. I'm attempting to emulate a game from my childhood. A lot of work has been done with respect to emulating said game, and I've made some decent progress through the windows setup guide that can be found here.
I recommend taking a look at that first, because knowing the prior steps I've done will probably help in answering this.
Currently I'm on step 10, building the Vana solution. When I build it in Visual Studio 2019, I encounter 3 errors. The login, channel, and world server projects cannot open “libmysql.lib”. The output is as follows:
LINK : fatal error LNK1104: cannot open file 'libmysql.lib'
And under the error list it reads:
LNK1104 cannot open file 'libmysql.lib'
It’s not telling me why it cannot open it, it just says that it can’t open it. It’s not giving me any location, or much clues as to what exactly I should do. I found “libmysql.lib” within the MySQL server community 8 folder and I put the file within the SQL folder in the “LazurBeemz” directory, but got the same error.
I then tried putting it into the MySQL server 5.0 folder because that’s where I pointed the “LazurBeemz” pack to, unfortunately I got the same exact errors. Honestly I have no idea where exactly I should put it or why I’m getting these errors. It’s beyond me. I checked the specifics of the error code (LNK1104), and it has a PLETHORA of possibilities. The main thing I need to know is WHERE should this file go?
Any Thoughts?
Here is a picture of the error messages
First, you need to find out the file directory where the libmysql.lib is located.
Then, you could select Properties->Linker->General->Additional Library Directories-><Edit...> and add libmysql.lib file storage directory.
Finally, you could select Properties->Linker->Input->Additional Dependencies and add the name of libmysql.lib.
Note: You need to perform similar operations on debug version and release version.

How to resolve compiler error in directx and c++

I am reading Frank D Lunas' book on 3d game programming, and I am trying to get the samples working. Firstly, when I open the project there are various header files, and when you try to compile, it issues an error message like 'Cannot open include file: 'd3dx11.h': No such file or directory' even though it is there. When you delete it and replace it with a header file with the same name, the error goes away. Secondly, when you do that for all the header files and compile it issues an error message saying something like it cannot open a file called 'Effects11d'. What is the issue?
Frank Luna's book assumes you are using the (now deprecated) DirectX SDK. Starting with VS 2010, you have to manually add the include/lib paths to the VC++ Directories settings of Visual Studio to access it. The key thing is with VS 2012 or later, you need to list the DXSDK_DIR paths last because everything in the Windows SDK is now newer than it.
Details on the bottom of Microsoft Docs.
See this blog post for more notes.

Issues using POCO with OpenSSL to send SMTP email

This is my first time writing a program that has any interaction with email. As such, I simply want a program that when ran, sends an email. After some googling I have found that POCO is a simple library that allows me to do just that.
I would prefer to use C++.
I downloaded the latest version of POCO and included the library as well as the include folders in VS2015 Community on Windows 10. I set up a program just like the one found at this tutorial: https://axistasoft.com/blog/poco/poco-net/item/sending-email-messages-using-poco-securestreamsocket-securesmtpclientsession-class
However, when I compile the program I receive the error:
1>d:\downloads\openssl-1.1.0c\openssl-1.1.0c\include\openssl\e_os2.h(13): fatal error C1083: Cannot open include file: 'openssl/opensslconf.h': No such file or directory
So when I navigate to the folder that is named, I find a filed named 'opensslconf.h.in' - close to the file it is looking for. I'm not really sure what else to do here. This is my first time using POCO. I tried to use a simpler version with no OpenSSL but I do not believe it is possible to send email through GMail without it.
I have researched the errors but they either say that I just need to remove OpenSSL (can't do that) or some things specific to Unix, which I'm on windows.
Any ideas?
You can add it as an include folder, like -I D:\Path\To\Include\OpenSSL as a compiler argument or add it in your VS project in project settings.

LNK 1104 error to lib file - Continues despite removing includes and links

A link error to a lib file popped up out of the blue in a c++ application of mine after code was working fine in my last session.
Error 1 error LNK1104: cannot open file '..........\Program Files
(x86)\FMOD SoundSystem\FMOD Programmers API
Windows\api\lib\fmodex_vc.lib'
I triple checked my project directories were set up correctly to link to the lib file, that the file existed in said directory and that it was a working version of the .lib.
My next step was to remove the includes to the file and the links to bypass the error and work on the rest of my code until the problem was solved. The error remains, however, despite:
Commenting out absolutely every include relating to the lib.
Commenting out absolutely every line of code dependant on the includes.
Removing the directory from VC++ Directories in the project properties.
Checking the Additional Library Directories field was also clear of references.
To my understanding this should have made the library and related code virtually non-existant to the compiler.
What am I missing?
The library itself is fmodex_vc.lib - part of the FMOD API for providing sound to interactive applications.
Again, the application was working one session, but failed to compile the next. I hadn't touched the code since so this led me to believe some aspect of VS is at fault. I'd like to avoid the time involded in re-installing if possible as I'm on the clock for a review tomorrow evening and there are a few more things I'd like to smooth out before then. If necessary, however, I won't hesitate.
Very much appreciate the help.