9,795 questions
1
vote
1
answer
60
views
How to Include External Files in PlantUML for Gantt Diagram Custom Functions?
I am working on a Gantt diagram using PlantUML. Due to the nature of Gantt charts, I needed a way to convert arbitrary dates into epoch_time. Since PlantUML doesn’t seem to provide a built-in function ...
1
vote
1
answer
28
views
EditTexts are populated with same data after rotation
I have a layout with some EditText, like name, surname, city... I include this layout in another layout a couple of times, so there is two EditText for the name, surname, etc. The problem I face is if ...
0
votes
0
answers
88
views
My Visual Studio 2022 compilation insists saying that there is not a file in my solution even though there are no references to that file
Basically I got this problem where I tried to install glad to my project, the thing is that I saw that glew was already there and decided to deinstall glad. But now my Visual Studio keeps asking me ...
1
vote
2
answers
96
views
How to resolve #include errors [closed]
Doubt regarding c
I tried to print "Hello World" but then found this error. I went through numerous videos on YouTube where they ask you to install MinGW and change the compiler's path but ...
1
vote
1
answer
69
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
49
views
fix the include invalid directive name error on next.js when using threejs-glsl
Three.js is reusing the #include macro to import glsl code into a separate glsl file.
For my use case, I plan to reuse glsl code by using the same macro.
uniform float uTime;
varying vec2 vUv;
#...
1
vote
0
answers
87
views
Android <include> constraints are not working anymore
I've always worked with reusable layouts with no problem using viewbinding + dataBinding in Android development.
Recently, the <include> tags have had this issue:
When added to a layout, the ...
0
votes
1
answer
147
views
Use shell script function under multiple Gitlab projects gitlab-ci.yml files
I have multiple gitlab projects and I want to create one template which would be useful under multiple projects.
I have 2 files under one project
function.sh
function.yml
Problem:
under the function....
0
votes
1
answer
79
views
GitHub Branch Ruleset - how to specify what items require a pull request
I have a repo that has .github, src directories and a README.md file.
I would like to be able to make changes to whatever is in .github folder or to the README.md file without the need for the pull ...
-1
votes
1
answer
65
views
PHP absolute path to include file fails [duplicate]
I have located PHP include files for a bunch of systems above the web-root directory, using absolute paths, for many years. Suddenly it is failing on a new system running Rocky Linux 9, PHP Version 8....
1
vote
1
answer
109
views
Ubuntu C program with embeded Ruby: fatal error: ruby/config.h not found
I'm trying compilation simple as possible C program:
gcc -Wall -O0 -std=c99 -pedantic -pedantic-errors `ruby -rrbconfig -e 'puts RbConfig::CONFIG["LIBRUBYARG"]'` -I`ruby -rrbconfig -e 'puts ...
1
vote
1
answer
74
views
C input VS Code
I am going through the edx CS50 course for 2024, I am in the 1st week of C programming. The CS50 course has the user use the online CS50 program that includes the CS50.h module.
This allows me to use &...
2
votes
0
answers
33
views
Problem Including c files into a codeblocks project
I'm having trouble with a bmp editor project while using codeblocks.
Context: This is a group project I made alongside 2 friends, all the functions work and it's ready to be submitted as a codeblocks ...
1
vote
0
answers
71
views
How to enable clang-tidy to inspect header files and related interfaces
Currently we are integrating clang-tidy into our project and we found that it has troubles when we introduce interfaces to classes (in multiple files).
Consider following code
//driver_interface.hpp
...
0
votes
1
answer
110
views
VSCode can't open source file "glibconfig.h" (dependency of glib.c) ---Windows
My glib.h file is located inside of this folder: "C:\msys64\mingw64\include\glib-2.0"
This is my settings.json file:
{
"explorer.confirmDelete": false,
"includePath": ...
-1
votes
1
answer
50
views
PHP: include a script file from a root directory subdirectory (_private) in a subdomain
I spent hours researching, reading, and trial/error-ing to no avail.
I have a family website (http://www.TheMichelPage.com) that has a lot of subdomains. I thought the domains are supposed to be set ...
0
votes
0
answers
76
views
VSCode not finding libraries which were installed with MSYS2
I have the following Problem: When I open my project in VSCode only the cjson/cJson.h library is not found
#include <stdio.h>
#include <Winsock2.h>
#include <Ws2tcpip.h>
#include <...
1
vote
1
answer
57
views
How to hide macro usage from an output shared library
I'm trying to write a C++ logging library. It uses boost::log mainly for the BOOST_LOG_SEV macro. I can use my library without an issue like LOG(debug) << "Test message". Here is my ...
0
votes
0
answers
38
views
Can Atlas Search storedSource include just the "_id"?
I have a certain use case where I need to return just the "_id" field of all the documents for a query.
To improve the performance, we thought of using "storedSource" option of ...
3
votes
1
answer
211
views
Include needed headers in both .c and the corresponding .h or only in the .h?
Assume I have a module filter.c/filter.h.
That module exposes a function in the header:
uint32_t filterStuff(uint32_t input);
This means I need to include stdint.h, and I need it in both the filter.c ...
1
vote
0
answers
75
views
How to Include LightGBM 4.5 to Visual C++ Project?
I want to use C API LightGBM in My Visual C++ Project? How do I do it? I attach My code ??
DatasetHandle dataset_handle;
// load dataset
int result;
result = LGBM_DatasetCreateFromFile("D:\\...
0
votes
1
answer
34
views
Loop to assign mixins to classes in scss
I want to assign several @mixins to classes with the same name, something like:
@each $herramienta in $listaHerramientas {
.#{$herramienta} {
@include #{$herramienta};
}
}
The ...
3
votes
1
answer
140
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 ...
-1
votes
0
answers
68
views
Relative paths include in cmake
I'm trying to run my Native C++ project on Android Studio and i need to compile my C++ part using cmake.
I need to use this repository for reading json:
https://github.com/nlohmann/json
NOTE: Using it ...
0
votes
1
answer
79
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
2
answers
64
views
gitlab-ci: Including external jobs only for merge requests
I'm trying to configure a CI pipeline which includes jobs from other project, but only for merge requests. According to GitLab documentation, I can use rules with include and $CI_PIPELINE_SOURCE is ...
1
vote
1
answer
68
views
Why are types escaping namespace when included after vector header? [duplicate]
If I compile this minimized example with clang++:
#include <system_error>
#include <vector>
namespace MyNamespace {
namespace ffi {
#include <sys/types.h>
}
void example() {
...
1
vote
1
answer
80
views
Ruby module is not an ancestor after prepend
I'm developing a plugin to the Rails (6.1.7) project Foreman (v3.5.1; based on the Foreman Plugin Template) and face the issue that one of my modules (DnsInterfaceExtensions) ought to be prepended to ...
0
votes
0
answers
48
views
How to make the variable loaded in one loaded file available in Scheme?
I have the following directory structure (minimal demo):
main.scm
(load "regex_utils.scm")
(displayln "test")
...
regex_utils.scm
(load "utils.scm")
... ; load many ...
0
votes
1
answer
146
views
Unknown type name 'ImVec2'
I am trying to build the hello_imgui_template with Cmake, but I am unable to proceed without it giving me hello_imgui/hello_imgui.h file not found.
Just to try it out I manually inserted the absolute ...
0
votes
1
answer
48
views
LinkingError with extern keyword
I have a trouble about extern variable. I declared engineInstance variable at the beginning of cpp file like in below.
vkWrapper::EngineInstance* engineInstance;
But when I use it in hpp file by ...
0
votes
0
answers
129
views
How do I add DobbyHook in android studio
Couldn't find any information about how to install DobbyHook for android studio
The only thing i found was the original documentation, which didn't clarify anything. By the way my emulator has x86_64 ...
-2
votes
1
answer
64
views
C++ a single place to keep all #includes?
Gets a bit complicated with all #includes within each CPP file, is there a single place to keep all #includes?
1
vote
1
answer
66
views
C# linq Include OrderBy
I need some help sorting data by Included data. In the example below, I am returning a purchase order where I want to sort the purchase order line items by the line item id.
return await context....
0
votes
0
answers
53
views
OpenCV issue with including lib in CMake (Clion)
I have this CMake file in my project:
cmake_minimum_required(VERSION 3.28)
project(AICS)
include_directories(include)
include_directories(src)
set(CMAKE_CXX_STANDARD 17)
set(OpenCV_DIR "C:/...
0
votes
0
answers
14
views
Join and Cancel - use Include or Extend? [duplicate]
Image here
I have a Use Case Diagram for our Event Management Platform and our group is having a fight. I wonder in these two which is correct:
Cancel EXTENDS Join (in my view, we can choose to ...
0
votes
1
answer
368
views
How to include .env file in my python package using pyproject.toml?
I have the following folder structure:
program_root/
- src/
- tests/
- data/
- templates/
- docs/
- build/
- dist/
- ...
3
votes
1
answer
340
views
how to include zstd in cmake?
im trying to include zstd into my project and currently it kind of is included but it's being linked to the main executable at the end of the cmakelist file and thus except for the main file nothing ...
1
vote
1
answer
52
views
infinite include loop in jq. Two modules that need each other and one of them by a third
I have 2 modules that will convert code into strings, module1.jq and module2.jq
module1 converts the code of obj1 that have this form
{ "code1":"254", "Object2s":[ {...
0
votes
0
answers
120
views
PHP 8.3 on IIS 10 can't get document root set properly
I'm stuck on migrating old website to new server and the problem is on "include" or "require".
Website is on h:\www and doc_root and include_path in php.ini are set to h:\www.
If I ...
0
votes
1
answer
33
views
gcc -print-search-dirs not printing /usr/include or similars
I'm having some trouble with gcc, conda and default directories in which to search header files. According to this answer it automatically searches for files in /usr/include.
According to man gcc:
-...
0
votes
0
answers
46
views
Is there any way to have two files include eachother? [duplicate]
player.h in class Player
void update(TileManager tileM);
tileManager.h in class TileManager
void loadMap(int type, Player* player);
The player class only ever reads TileManager while TileManager ...
0
votes
0
answers
70
views
Does .editorconfig have any property that organize includes in c++?
I would like to organize my include statements in order and in blocks, similar to the .clangd configuration. I need to know if the .clangd or eclipse configuration are the only options to organize my ...
-1
votes
1
answer
45
views
CMake and finding header files in a directory tree
Here's my directory structure for my project (abbreviated):
Drawbox/
Library/
Drawbox.cpp
APClass/
smallAPstring.h
Here's the top level CMakeLists.txt file:
...
0
votes
1
answer
69
views
Is there any disadvantage in including more header files than you need? [duplicate]
I'm in the process of reworking the headers of a larger project. The headers haven't seen any care in a long time, so what we have is a long list of headers pointing directly at .h files located in ...
0
votes
0
answers
18
views
Why does PolSpice show this message during instalation procedure?
I am having some troubles with the instalations of PolSpice for two different versions, and for my conda enviroment py_cmb. I have been following the steps by https://www.zonca.dev/posts/2020-10-14-...
0
votes
1
answer
24
views
Cmake and includes in a tree of source directories
The CMake documentation contains the following:
include_directories: Add include directories to the build.
include_directories([AFTER|BEFORE] [SYSTEM] dir1 dir2 ...) Add the
given directories to ...
0
votes
1
answer
304
views
How to resolve 'section title out of sequence: expected level 1, got level 2' error in Asciidoctor VS Code extension?
I use the Asciidoctor VS Code Extension to edit my AsciiDoc project. My codebase has a structure with several layers of nested folders, and I use include::./folder/file.adoc[] to include lower-level ...