917 questions
0
votes
0
answers
79
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
152
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
21
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 ...
1
vote
0
answers
96
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
98
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 ...
0
votes
0
answers
85
views
include path error in visual studio code in Mac operating system
i am trying to run a simple c++ program
#include<math.h>
#include<limits.h>
#include<iostream>
int main(){
return 0;
}
math.h is detected easily, limits.h is also detected ...
3
votes
1
answer
351
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
109
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
112
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
84
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
68
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
249
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
63
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
23
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 ...