Questions tagged [include]
A provision that many programming languages provide to allow functionality defined in one file to be used in another.
0
votes
1answer
323 views
Error “Unterminated conditional directive” in cross-referencing headers
There are two classes that are related to each other in their headers:
PlotMarker
#ifndef PLOTMARKER_H
#define PLOTMARKER_H
#include <QObject>
#include "plotter.h"
class Plotter;
class ...
1
vote
1answer
15 views
Error LNK2001: unresolved external symbol when trying to use source and header files from another directory than the default in Visual Studio 2015
I have the stdafx.h file and a source (test.cpp) file in the default directory (C:\Users\Roland\Desktop\projects\test\test) together with a header (header.h) and a source (source.cpp) file in an other ...
1
vote
1answer
33 views
Configure $(CC) to warn when inclusion is safe to be removed [on hold]
Read this source code doc:
// foo.c
#include<stdint.h>
main(){}
I can do this:
$ gcc -Wno-implicit-int foo.c
$ ./a.out
$ gcc -dumpversion
6.3.0
GCC compiles without warnings.
Let's modify ...
2
votes
1answer
405 views
VSCode “fileName” file not found
I finally set up the VSCode environment, just 1 remaining problem with #include as on the following image:
I checked many google results with similar, but not the same problem. The thing is that it ...
1
vote
1answer
19 views
How to get view in Java when using merge and include tags?
I have multiple include tags inside my activity's layout XML file. I created a reusable layout using "merge" since I don't want any redundancy of layouts.
I need to obtain each TextView in my layout. ...
3
votes
3answers
2k views
WordPress include SVG file error
I use PHP and WordPress.
On localhost I can include a SVG file without problems, but on the live server. I try to include an SVG file to be able to style it with CSS.
I got this error message
Parse ...
0
votes
1answer
1k views
Rails :include doesn't include
My models:
class Contact < ActiveRecord::Base
has_many :addresses
has_many :emails
has_many :websites
accepts_nested_attributes_for :addresses, :emails, :websites
attr_accessible :prefix,...
0
votes
0answers
5 views
Not found jpeglib.h
When I try to build libyuv, there is always show me this message on mac os.
./source/mjpeg_decoder.cc:35:10: fatal error: 'jpeglib.h' file not found
However I realy find the file under the path /...
2
votes
4answers
2k views
Entity Framework/C#: multiple includes from string array?
If want to use the Include() method on some Entity Framework selection (in order to avoid the 'Object as been disposed' exception).
But Include only accepts one string as parameter which means one ...
0
votes
0answers
10 views
Vue keep-alive wrap router-view and add 'include' property
when I add the 'include' property the components is created but destroyed(from console log known that) at once, 'include' is variable when watch the router(to) and push the component name in 'include'....
0
votes
1answer
11 views
Problems with includes() function and array comparsion
As a part of whole procedure, I want to compare user's input (as array) with union of two randomly given arrays. I can not use array.sort() and comparison of arrays element by element, because it's ...
5
votes
1answer
83 views
julia: recommended way to `include` files: list of includes in top-level file or nested includes?
What is the recommended way to include all the files for your project?
I have seen many examples that use a similar structure: an ordered list of include statements in a single top-level file (the ...
0
votes
1answer
14 views
visual studio 2017 cannot include some file,but the d3d application can debug
This project is merged from GitHub
this picture can describe the application debug the situation
just like the picture is expressed, program can include some header file,
but there will be a lot of ...
-1
votes
0answers
19 views
php : ob_get_clean() inside sql query
i'm trying to add this variable:
ob_start();
include 'O.php';
$o = ob_get_clean();
inside this query:
$sql = "SELECT users.*, mcompanies.companyID FROM mcompanies INNER JOIN
users ON mcompanies....
29
votes
2answers
32k views
EF: Include with where clause
As the title suggest I am looking for a way to do a where clause in combination with an include.
Here is my situations:
I am responsible for the support of a large application full of code smells.
...
0
votes
3answers
52 views
C++ #include and operator<< overloading error
So I 3 classes as follows:
class Weapon {
char* name;
Target target;
int hitStrength;
public:
Methods...
};
class Player {
char* name;
int level;
int life;
int ...
1825
votes
30answers
431k views
What is the difference between #include <filename> and #include “filename”?
In the C and C++ programming languages, what is the difference between using angle brackets and using quotes in an include statement, as follows?
#include <filename>
#include "filename"
0
votes
0answers
27 views
Julia : How to use “include” function on 2 modules each other?
I'm a beginner in JuliaLang.
I can't understand a thing : how to use "include" function on 2 modules ?
I have two julia code files (modules)
main.jl code file
module main
include("xmd.jl") # ...
0
votes
0answers
17 views
How can I import a XML file into Typo3-Flexform-XML file?
I have an big SomthingAction.xml in Typo3.
Now I want to include some code snippets with XML-include like:
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3DataStructure>
<...
0
votes
2answers
20 views
Entity Framework dbSet.Include(x=>x.Offer.Images.Where(y=>y.IsDeleted == false))
How should I transform this query into a valid Entity Framework query?
dbSet.Include(x=>x.Offer.Images.Where(y=>y.IsDeleted == false))
The Where clause throws an exception:
The Include ...
-1
votes
0answers
17 views
set Cache-Control for phpInclude files
In my index.php and others I have phpIncludes like
<?php include("includes/khof-footer.php"); ?>
This file has some html Text and Javascript in several script tags.
I tried to cache these ...
0
votes
2answers
39 views
Save data in variable php
I have a form input data called input.php, and the data will be process in process.php,
how can I get data after the process?
source code for form input.php
<form action="process.php" method="...
-1
votes
0answers
25 views
Cannot figure out unresolved include on eclipse with cygwin for c++
I downloaded eclipse and Cygwin to my PC for c++. I get an error message on #include <iostream> as "unresolved inclusion" and it stops me from doing anything. I have searched this issue for ...
9
votes
4answers
11k views
How to get include contents as a string? [duplicate]
Possible Duplicate:
Execute a PHP file, and return the result as a string
PHP capture print/require output in variable
I am trying to get the contents of an include to a string. Is that ...
45
votes
2answers
8k views
Should I include <xxxx.h> or <cxxxx> in C++ programs?
What should I include in C++ programs, stdio.h or cstdio? and Why?
Why two header files which provide the same functionality?
What does the standard say regarding this?
How ...
0
votes
1answer
11 views
How to check if a string contains specific format in python?
For example, in python 3, I want to check if a string contains _{}P_, { } can be any number like _5P_, _10P_? Should I use re?
-1
votes
0answers
24 views
Html include function isnt working for me [duplicate]
im acutally working with html and php to create a tiny website. I have a server with apache2 and php installed. In the "html" directory are 2 files, my index.html file and a test.php file. My index....
-2
votes
0answers
14 views
How to use all PHP files in every cpanel account
I have a lot of PHP files in one of the Cpanel accounts and I want to use these files in other Cpanel accounts. please guide me
-4
votes
3answers
667 views
Jquery $ Not defined, but it is
<script>
$(document).ready(function () {
function updateData(){
$('#ajax').load('./alerts.php', function(){
setTimeout(updateImage, 2000);
});
};
updateData();
});
</script>
That ...
0
votes
1answer
149 views
Dev-C++: Why isn't curses.h included?
I've installed Orwell Dev-C++ 5.x and the PDCurses DevPak. However, when I try to compile the example curses application, the compiler/linker complains that it can't find curses.h. Why?
0
votes
0answers
11 views
Importing Namespace Issues in PHP [duplicate]
I have downloaded collections framework for PHP but whenever I try to import the class I get this error even if the namespaces are in the same directory as of the folder
Fatal error: Class 'Mysidia\...
0
votes
1answer
57 views
'stdio.h' File Not Found When Compiling Hello World
Edit: added output of $cc -v main.c at the end of this post.
I'm using an old Xcode because my kernel extension will support El Capitan. That works with 8.3 by copying the 10.11 SDK from an older ...
2
votes
1answer
32 views
In CMake how do I make `TARGET_LINK_LIBRARIES` suppress warnings from 3rd party library code?
In CMake, you can make TARGET_INCLUDE_DIRECTORIES() add include directories as system include directories (i.e. use -isystem) in order to not let warnings pop up which have their root in 3rd party ...
1
vote
0answers
40 views
Use “include” in a .ini config file
I need your help.
I have two .ini-files with similar keys and values. I want them to be synchronized but more like merged.
There will be change on both sides of those .ini-files so we can't create ...
0
votes
3answers
34 views
Replacing filename placeholder with file contents in sed
I'm trying to write a basic script to compile HTML file includes.
The premise goes like this:
I have 3 files
test.html
<div>
@include include1.html
<div>content</div>
@...
0
votes
2answers
22 views
PHP include svg assets in cake php
Does cake have a way to php include svg assets? I know how to use helpers to create an <img> tag pointing to the SVG for the img's src attribute, but I'd like to actually include the file ...
1
vote
2answers
46 views
Is that possible to include a header file in an indirect way in C++
First of all, I am a very beginner in programming. So that before answering, please consider that...
Let's say I have 3 different source code files. First one is foo.cpp, second is doo.cpp, and third ...
2
votes
2answers
3k views
Symfony include navbar html into Twig template
My Symfony application has a defaultBundle which loads a default.html.twig successfully.
I am trying to include the contents of a navbar.html.twig into default.html.twig. The following code is my ...
15
votes
3answers
8k views
How to include constraint layout to another constraint layout and set constraint between each
I'm using constraintLyout v 1.0.1.
I would like to include in my xml a sub ConstraintLayout corresponding to a part of my global layout (which itself is a ConstraintLayout). I split the layout in two ...
25
votes
8answers
16k views
PHP exit() from within included script, exit parent script?
In PHP, if I use the include() or require() functions to start running code in another script, is there a way to terminate the parent script from within the child?
So say I have this in parent.php:
...
0
votes
2answers
41 views
In PHP, how do you add functions from an include file to an existing class or object instance?
I'm working on a custom PHP framework where the user encapsulates his code for each page in functions. Then those functions will hopefully be added to a general Page class behind the scenes, which ...
4191
votes
53answers
2.4m views
How do I include a JavaScript file in another JavaScript file?
Is there something in JavaScript similar to @import in CSS that allows you to include a JavaScript file inside another JavaScript file?
1
vote
4answers
5k views
How do I include a file of PHP functions in a Joomla template
I have been trying to include a file in my template which includes some functions I was intending to use for validation of the access level a member has in order to tailor content for different types ...
1
vote
2answers
35 views
EF Linq Include multiple strings
So I'm trying to retrieve (one or more) children of some entities using EF Linq.
The strange thing is that this isn't working:
public static class DbSetExtension
{
public static IQueryable<T&...
35
votes
7answers
90k views
Warning: require_once(): http:// wrapper is disabled in the server configuration by allow_url_include=0
I am trying to include a php file in a page via
require_once(http://localhost/web/a.php)
I am getting an error
Warning: require_once(): http:// wrapper is disabled in the server configuration ...
42
votes
4answers
60k views
Passing parameters to another JSP file using <jsp:include> tag
I have a JSP file and in that file I am including another JSP file:
<c:forEach var="instanceVar" items="${instanceList}">
<c:set var="instance"><jsp:include page="instance.jsp"/>...
0
votes
2answers
8k views
Downloading MP3 and MP4 files using PHP
I am making a downloader for mp3 and mp4 and i want two php files in php with 2 buttons calling both php files but only the first php file works.
code for popup.php
<?php
include "downloadmp3....
0
votes
1answer
32 views
Ruby: Compare if array contains other array [duplicate]
how can i compare if an array of strings contains a smaller array of strings in Ruby?
e.g.
a=["1","2","3","4","5"]
b=["2","3"]
now i want to check if a contains b and get true/false
Thanks.
0
votes
0answers
32 views
How to add appendix with in Latex for big projects
in Latex I have a main file which controls all the chapter and everything. In that file I have a part:
\appendix
\chapter*{Appendix}
\thispagestyle{empty}
\setcounter{chapter}{1} ...
-1
votes
0answers
18 views
how to include another script in java script and wait to include to main script
After including java script file and call function from it don't run.
How to wait until including script? I tried to write
onclick ="setTimeout(myFunction, 3000)"