Questions tagged [include]

A provision that many programming languages provide to allow functionality defined in one file to be used in another.

Filter by
Sorted by
Tagged with
0 votes
1 answer
35 views

How to include same sources in 2 different Makefiles?

I have the following project structure: Program ...Common ...Net ...Msg ...Tool ...Common ... tool.h ... tool.cpp ...Makefile (2) ...Common.inc ...Makefile (1) So, i'd like to build ...
Kirill Shvedov's user avatar
0 votes
0 answers
15 views

pugixml intergration in visual studio code

am trying to read an xml file in visual studio using the pugixml parser. i have downloaded the parser. but am wondering how i can link it with my c++ code. like how to configure the include ...
Elijah Eisenman's user avatar
0 votes
0 answers
14 views

Is it possible to use RegEx at all with @match in userscripts?

I've been getting a warning in my userscript to change from @include to @match as it may be depreciated in Manifest v3 (cannot find any evidence of this though). However, @match supposedly does not ...
pythonInRelay's user avatar
0 votes
1 answer
20 views

Django, How to access request data in include template

In my Django project, I have some templates that includes in base template using {% include %} tag. How do I access request data in this included template? How do I access context variables in this ...
Pycm's user avatar
  • 23
-3 votes
0 answers
52 views

struct was not declared in this scope c++ [closed]

I want to use structs declared in myutils.h in Message.h . The path of the 2 files is: src/myutils.h src/messaging/Message.h Intellisense finds the structs and the header file myutils.h is found ...
goldarm5's user avatar
-3 votes
0 answers
72 views

Visual studio community 2022 "bug" in include C++ after update

When I want to call a file using the #include code, instead of it showing me the files in my folder, it shows the windows kits files, this happened after the update, as old projects worked normally, ...
VictorAnrel's user avatar
-2 votes
0 answers
57 views

How can I solve foreach and include problem in php [closed]

I have problem with this codes. Sometimes even if $spek["b_grup"] is different it is including same php file. In the table I have 200 different data. But only 4 data going same php file ...
user9396687's user avatar
0 votes
1 answer
41 views

Include Library into C++ Project using Cmake

I want to use gtkmm-4.0 in a C++ project. I installed it using msys. Now the gtmm-4.0.h file is saved at "C:\msys64\mingw64\include\gtkmm-4.0". And i have the following CMakeLists.txt file. ...
Rafael Buchser's user avatar
0 votes
1 answer
35 views

Ruby- NoMethodError across modules

I'm having some issues with getting to grips with using modules correctly. I have: module Utilities def file_search() # some code return x end end module Remake_Components require 'csv' ...
Ben Garcia DB Solutions's user avatar
0 votes
0 answers
43 views

PHP File Inclusion Issue: File not Executing as Expected

I'm encountering an issue where a particular PHP file, custom_functions.php, is not being executed within my project, resulting in unexpected behavior. Problem Context File Structure: project/ │ ├── ...
Bitshost's user avatar
0 votes
1 answer
33 views

Include a library in cmake_ament package

Taking this example from ROS2 official documentation, i want to add a library to one of the cmake_ament build packages. In the example, they already included the string library #include std_msgs/msg/...
rekkalmd's user avatar
  • 171
0 votes
0 answers
15 views

How to read a WSDL that includes XSD schema in the same folder with typescript?

I am creating a Soap Service with strong-soap. I have a WSDL file that i need to read as string, the WSDL file imports an XSD file in the same folder. WSDL and XSD are in the same folder WSDL file ...
Jonnathan Sandino's user avatar
0 votes
0 answers
74 views

Gitlab. How to provide values for property "options" from file include?

For the past two days, I've been struggling with my issue. I've tried several scripts, but none of them seem to work. I would like to include a file from a different location in my .gitlab-ci.yaml ...
Oryctes's user avatar
0 votes
1 answer
29 views

how to include turtlesim/msg/pose in my ROS2 program?

this is the error i keep on getting after working out different ways, what could be the possible error? I can clearly see the topic turtlesim/pose and the msg type turtlesim/msg/pose in the topic list ...
bode vedhamsh's user avatar
-1 votes
0 answers
30 views

Why is style include ../static/style.css not targeting style.css in my static folder

I typed style include ../static/style.css In index.pug so it targets style.css in my static folder but in the webpage it doesnt change my heading or paragraph i mean their font family Here is my ...
Talha Sajjad's user avatar
0 votes
1 answer
44 views

In Unreal Engine 5, how do I include and use UPlayMontageCallbackProxy::CreateProxyObjectForPlayMontage in C++?

I want to play my UAnimMontage via C++, and in particular, want to make use of the conveniences of UPlayMontageCallbackProxy. Looks like in theory, I can use UPlayMontageCallbackProxy::...
brain56's user avatar
  • 2,659
0 votes
0 answers
32 views

How to include with any property of class in entity framework?

public class City:IEntity { public int ID { get; set; } public string ILKODU { get; set; } public string ILADI { get; set; } } public class Doctor : IEntity { public int ID { ...
Mesut Kızılay's user avatar
0 votes
0 answers
31 views

I can't use the contents of the bits/stdc++.h header file on vs code

#include <bits/stdc++.h> using namespace std; int main() { cout << "working.."; } identifier "cout" is undefined. I get the above error message when trying to use ...
Vasisht Nirmal's user avatar
1 vote
1 answer
82 views

How do we pass the include Path?

I created a "build" directory and ran cmake .. to run the ViennaTS software. It worked, but when I ran make, I got the following error. Username@DESKTOP-DMU7A5N:~/ViennaTS/build$ make [ 50%] ...
Shuto's user avatar
  • 11
0 votes
1 answer
43 views

Forming a #include file name from a number

Given a numeric macro as input via the C++ compiler's -D option, can I form a filename for use with a #include statement from it? For example, currently I might have: #include "data/1024_cadr.h&...
user2023370's user avatar
  • 10.6k
1 vote
0 answers
51 views

How to set a timeout and return the results in C++? [closed]

I am new to C++ and I encountered some codes in C++ that I need to modify. I have the following scripts as below: rs.cpp #include "hypergraph.hpp" #include "rs.hpp" #include "...
Schrodinger's user avatar
0 votes
0 answers
55 views

How do I add a library to my project while keeping them in the same directory/not have the library be a system library?

So I am pretty new to programming and decided to improve by making a simple game. For this I need multiple libraries (SDL for example). I understand that libraries should be compiled from their source,...
His_Holiness's user avatar
0 votes
0 answers
16 views

How to build MySql to install mysql.h

I am building MySql from source. But it does not install mysql.h into /usr/include/mysql. I know that I can install it with libmysqlclient-dev package but I want to install it within the build process....
lid's user avatar
  • 1
0 votes
0 answers
35 views

EF Core include many to many relation in the generic repository by params

How implement many to many relation with include in generic repository by params in EF Core. Link below is a type of my question but not my question . ef-core-include-for-many-to-many-in-the-generic-...
2AI's user avatar
  • 1
0 votes
0 answers
29 views

Predefined variable in include:rules condition matching in GitLab CI is not working

When I try to include files depending on branch the condition is always ignored. Following Use rules with include by GitLab my include section is as below where I am trying to add .gitlab-$...
Utshab Saha's user avatar
0 votes
0 answers
71 views

Why can I use `std::move` without `#include <utility>`? [duplicate]

https://en.cppreference.com/w/cpp/utility/move says that std::move is Defined in header <utility> The C++ standard agrees (p. 556). Still, this compiles in several compilers, including https://...
bers's user avatar
  • 4,924
2 votes
0 answers
66 views

Why can't I use <execution> library with gnu++20

My environment is Xcode 14.0.1 with the compiler set as below. compiler version setting I try to experiment with execution policy, but I cannot use any stuff inside the library. #include <execution&...
user26729's user avatar
0 votes
1 answer
110 views

Implicit declaration of function 'uart_isr_register' despite including library and espressif seeing the function and can shows me the definition

This is my first post here, so please let me know if I'm doing something wrong. I'm trying to create an interrupt-based UART receive task on my ESP32S3. It should be straightforward, but unfortunately,...
Ray004's user avatar
  • 3
0 votes
1 answer
62 views

Compilation order and effect of unused files in C++

In my project I use a bit of third party code like Vulkan Memory Allocator or STB, which require to put a define before the first include of their header file. The VMA docu suggests to create an extra ...
Tare's user avatar
  • 594
0 votes
0 answers
41 views

Cannot call function from another (included) file in PHP

I have a file that does this: <?php //note: this is in 'testPage.php' include(NAVBAR_PATH); registerSource(__FILE__); ?> Where NAVBAR_PATH is a constant from a required file which ...
Gabe Lily's user avatar
-1 votes
2 answers
97 views

How to include HTML in HTML

I want to include an HTML snippet in another HTML file. I am trying to do this, so I have the following files inside a directory: include.js include_this.html main.html with the following contents: ...
user171780's user avatar
  • 2,453
0 votes
0 answers
33 views

How to use In-Memory Cache with eager loading in EF Core

I use In-Mmemory Cache to store some of the db models and I'm trying to use them in my queries using .Include(). The idea is not to change all my queries where I have cached models but instead somehow ...
Emanuel's user avatar
  • 6,732
2 votes
0 answers
35 views

Should I write <!DOCTYPE HTML> on all of the php including pages? [closed]

I have included the header and then i wrote the main section in html and i again include the footer. But my browser's developer tools say that its on the quirks mode and the problem is my document ...
Sina Vasmas's user avatar
0 votes
0 answers
72 views

gcc -MMD omits local header files

I'm invoking gcc with -MMD, and it lists some, but not all, the header files. I've copied the FreeRTOS source into my project, include those files via #include <...>, and set the the -I path in ...
SRobertJames's user avatar
  • 8,551
1 vote
0 answers
65 views

Including the includes in the custom .h file

I am trying to make a headers file where I put all the includes (unistd, stdio, ...) in C. However when compiling with 'make' I get an error. libft.h: #ifndef LIBFT_H # define LIBFT_H # include <...
Mustash's user avatar
  • 13
0 votes
0 answers
61 views

How do you integrate a custom build tool/step for files that works with includes into MSBuild

I've been researching how to integrate a Custom Tool into a Visual Studio project (i.e. MSBuild) such that includes will work like they do in C or C++. In C++, if I have a file, say main.cpp, that ...
Borgleader's user avatar
  • 15.8k
0 votes
0 answers
23 views

How do I include an ID number into a URL in a dynamic way and display the content on the page?

I have a WordPress site that is allowed to display data from another site and I've created the PHP echo statement correctly to display the content. But the Read More URL scheme is thus: ?...
websitewhizz's user avatar
0 votes
1 answer
104 views

How to find a specific AVR header file

I am rewriting some old code for an ATmega32M1. I would like to reuse some of this old code. In one place, the previous author has written: Hard_reset(); // wait for watchdog to timeout This ...
Infinite_Maelstrom's user avatar
1 vote
0 answers
42 views

Linking boost (c++) using cython

I am getting this error when i try to run a test after implementing a functionality in my c++ code. tests/pipeline/feature_extraction/test_rolling_windows.py:5: in <module> from pipeline....
Saif Ali Khan's user avatar
-1 votes
1 answer
57 views

Why the filter method is not working when filtering an array of objects requested from an API (Javascript)

I have been practicing some coding after some break. I'm trying to filter an array of objects from an api and creating a function the which will return me every word from the title of the fetch I'm ...
Luis Daniel Arciniegas Barco's user avatar
1 vote
1 answer
141 views

Quarto unable to resolve external file in "include-before-body"

I've long used R Markdown to create HTML documents. These documents rely on an external JS file that is accessed through HTTPS. Here is an example of the YAML header for this sort of R Markdown ...
user697473's user avatar
  • 2,203
-1 votes
3 answers
62 views

Why such warning even though type is specified in .h file

There are 2 files libtest.h and libtest.c libtest.h int a; libtest.c #include "libtest.h" a = 10; When I compile libtest.c cc -c libtest.c libtest.o is generated but I get this warning. ...
mhsquare's user avatar
0 votes
0 answers
50 views

#include <stdio.h> Intellisense, Noob Error

Beginner Noob Question, Why doesn't my VSC recognize #include <stdio.h> in C programming? I have Microsoft C/C++ extension downloaded and everything.I created a new directory and folder and ...
user22564981's user avatar
0 votes
1 answer
39 views

PHP Include two files

New to PHP and having a problem with a page that has two included statements. I have one file that has my database connection code and another that has code to list information from the database. The ...
Rockb's user avatar
  • 23
0 votes
0 answers
73 views

Compiler can't find SFML/Graphics.hpp?

I am trying to include the SFML graphics library into my C++ program on VSCode on Mac, I have put the pathname to the include folder in both my tasks.json file as well as my c_cpp_properties.json file ...
listentoaj's user avatar
0 votes
0 answers
29 views

No such file or directory error for <private/*.h> includings when build in Qt

I'm newbie and never build from source files before, and tried to build QtCharts. I downloaded source for QtCharts 5.12, and it has prepared .pro file. So I launched this .pro file in Qt Creator, did ...
willy_j's user avatar
  • 25
1 vote
1 answer
15 views

JOOQ - is it possible to set, for which tables i want to generate POJO (different than records)?

we are using JOOQ generated Records in our application even for use in presentation layer (i know thats kind of antipattern here, but i cannot refactor everything at once). What I am trying to reach ...
Worsik's user avatar
  • 67
0 votes
0 answers
20 views

Best Practice: Including Library From Other Repo in PyCharm Project

Imagine an application project that must include a subfolder, "lib", that consists of an other git repo project. This lib project contains the libraries we use in all new projects. How can ...
NW7US's user avatar
  • 93
0 votes
0 answers
26 views

VS Code does not recognize files in include path [duplicate]

I am trying to do the gstreamer tutorials in C. Unfortunately I cant even do the first one, since the includes are not working correctly. In the tutorial code the is the include command: #include <...
Gray Fox's user avatar
1 vote
1 answer
40 views

android including layout with <include> tag , but any onclick functionality is not working

I have a navigation drawer in my app and one included layout. but when I run the app every image and button with onClickListener not working. in the below code, navigationDrawer code is not included ...
Sufyan Hashmi's user avatar

1
2 3 4 5
196