916 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
48
views
How to properly resolve include paths in VS Code
I have a workspace for cross-compiling an application on a remote linux server. I recently moved to VS Code, and mapped VS Code to the workspace via ssh.
In one of my files, I have the following:
#...
0
votes
1
answer
145
views
When workspace include paths are defined, intellisense doesn't work any more on user ones
For coding with C++, I'm using the Microsoft provided C/C++ extension for Visual Studio Code.
I defined the paths from settings UI. Include paths that are common to all my project are defined in the ...
1
vote
0
answers
212
views
Visual Studio 2022 OpenGL Project: 'assimp/Importer.hpp' Not Found Despite Correct Include Path
I keep getting below error during build at #include <assimp/Importer.hpp>
Error: C1083: Cannot open include file: 'assimp/Importer.hpp': No such file or directory
I have tried to clean the ...
-1
votes
1
answer
33
views
In CMake, what's a good idiom for choosing between alternative locations of a header file?
In a C source file of mine, I need to choose between including <linux/uuid.h> and <uuid/uuid.h> (depending on what's available on the file system - it's typically/always just one and not ...
2
votes
0
answers
138
views
Impossible to access to PHPMyAdmin : failed to open
Although it did works fine 2 weeks ago, since this morning, after launched Uwamp (in no install mode), if i try to access to PHPMyAdmin, i got this error message :
( ! ) Warning: Unknown: failed to ...
1
vote
1
answer
126
views
VSCode can't recognise includes
I'm using a Ubuntu machine for a couple years now, and everything worked. For the past few months however, VSCode started acting up, refusing to recognize includes, Not only do the non-native includes ...
3
votes
1
answer
482
views
Add missing includes without path
I am using clangd with VSCode. Clangd offers the possibility to add missing includes. When doing so, it (sometimes? couldn ́t figure out when) automatically adds the relative or absolute path to the ...
0
votes
1
answer
120
views
How do I include a .h file, located in an upper level directory? С++
So, for instance I have a bunch of files:
root-dir:
dir-a:
read.cpp
dir-b:
code.cpp
lib.cpp
lib.h
lib's files:
//lib.cpp
#include <string>
using namespace std;
string edit(...
0
votes
1
answer
153
views
bazel cc_binary - how to use copts -I<label>
I'm looking for a way to provide a label as argument to a copts -I value and don't know, if this is even possible.
cc_library(
name = "foo",
srcs = ["src/func.cxx"],
...
0
votes
1
answer
101
views
C++, Eigen library, #include does not see the file/directory [duplicate]
My #include <Eigen/Dense> gives the error: No such file or directory.
I followed tutorials on how to include it, my outcome appears to be different.
My tasks.json is:
{
"tasks": [
...
0
votes
0
answers
54
views
clang++ ignores -fno-exceptions if header is included from -isystem directory
Let's say I have main.cpp that includes utils.h from lib directory:
lib/utils.h:
#ifndef LIB_UTILS_H
#define LIB_UTILS_H
inline void util() {
throw 13;
}
#endif // LIB_UTILS_H
main.cpp:
#include &...
0
votes
1
answer
79
views
How to update includePath without using quick fix? [duplicate]
I'm using the C extension for vs code and have this error. All the tutorials online led to clicking "Quick Fix" followed by "Edit includePath settings", but there is no such option ...
1
vote
1
answer
333
views
KDevelop not finding easy C++ include file
I'm new to KDevelop. I'm trying to build a C++ program that starts with
#include <GLFW/glfw3.h>
But it can't find it.
This header is located at
/usr/include
GCC is supposed to look at this ...
-2
votes
1
answer
64
views
include error detected on vscode header file what should I do?
#ifndef SYMNMF_H_
#define SYMNMF_H_
void symc (double **, double **,int,int);
void ddgc (double **, double **,int);
void normc (double **,double **,double **,int);
void symnmfc(double **, double **, ...
0
votes
0
answers
32
views
CWD contains files with same names as system headers [duplicate]
If the current directory contains a file with the same name as a system header, the compiler will first search the current directory even for includes from within system headers.
Is there a way to ...