I have a problem with working with files in vscode opened folder. I can’t specify the relative path of the file, because it is a relative path for the compiler, but not for my project folder. For example: //I want to write in this way std::ofstream out("out.txt"); //*compiler’s folder*out.txt //But have to write in this ..
Category : visual-studio-code
I have a problem with working with files in vscode opened folder. I can’t specify the relative path of the file, because it is a relative path for the compiler, but not for my project folder. For example: //I want to write in this way std::ofstream out("out.txt"); //*compiler’s folder*out.txt //But have to write in this ..
I´m trying to build the Supertux-C++-Project (https://github.com/supertux/supertux) like in this Video: https://www.youtube.com/watch?v=bK882S9ESpo I installed the VSCode extensions for C++ and CMake and i´m using the GCC compiler. I cloned the VCPKG-Repository and executed the bootstrap-vcpkg.bat. After that I run ./vcpkg integrate install and got the message Applied user-wide integration for this vcpkg root. The .vscodesettings.json ..
I get "Include file not found in browse.path." However the IDE sees the path as I am typing #include "ntrip_caster.h". It gave the header in a list but than a couple seconds later shows it can’t find it once it is in the code. How to direct VS to where the headers are ??? Also ..
Following the guideline on how to setup mingw g++ in vscode, I cannot seem to succeed in including headerfiles from a subdirectory. I have my working folder, in which my main.cpp lies. In that working folder, I have a subfolder called "inc" in which my header file add.h lies, and I have a subfolder "src" ..
I am starting with programming on VS Code but when i typed my hello world code than i got this error It’s Showing g++ fatal error and g++ error no such file or directory Source: Windows Que..
I get "Include file not found in browse.path." However the IDE sees the path as I am typing #include "ntrip_caster.h". It gave the header in a list but than a couple seconds later shows it can’t find it once it is in the code. How to direct VS to where the headers are ??? Also ..
I’m writing c++20 in VScode. My configuration looks like this: c_cpp_properties.json { "configurations": [ { "name": "Mac", "includePath": [ "${workspaceFolder}/**" ], "defines": [], "macFrameworkPath": [ "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks" ], "compilerPath": "/usr/local/Cellar/gcc/10.2.0/bin/g++-10", "cStandard": "c11", "cppStandard": "c++20", "intelliSenseMode": "clang-x64" } ], "version": 4 } tasks.json: { "version": "2.0.0", "tasks": [ { "type": "cppbuild", "label": "C/C++: clang++ build active file", ..
I am using visual studio code with c++. When I format my code (Ctrl-k,Ctrl-f) it removes the spaces I place after/before open/close parentheses. I have the setting to add these spaces enabled and also see them in the settings.json file. I’m not using a prettier extension. I use only a c++ light theme extension, cmake ..
I’m using VSCode and MinGW for C++ coding and I want to set a shortcut for build and run C++ program. I can build C++ program and run the created .exe file successively just by F1 -> C/C++ : Build and Debug Active file-> g++.exe in one time, and I want to set a shortcut ..
Recent Comments