Questions tagged [header-file]
The header-file tag has no usage guidance.
80
questions
0
votes
1
answer
27
views
How to make a path available for the entire system in Ubuntu
My tflite directory is as follows:
/home/me/tensorflow_src/tensorflow/lite/
However, I fail to import it in my C++ project:
#include "tensorflow/lite/interpreter.h" // getting a not found ...
0
votes
1
answer
173
views
How to find all possible locations for libraries and header files on any distro?
I found that the location of libraries and header files are very different on different distributions. For Example on Fedora you have /usr/lib64/libbfd.a while on Ubuntu you have /usr/lib/x86_64-linux-...
0
votes
1
answer
1k
views
Detached LUKS header (on USB) for an existing full-disk encryption device with Ubuntu
I already have a /boot partition on a USB stick and a LUKS partition on my computer, which correspond to a fulldisk encryption scheme with Ubuntu 21
I want to put the header of my LUKS partition onto ...
0
votes
1
answer
104
views
How to tell 'find' command to jump to a position and search? [duplicate]
I'm preparing headers for a C++ project and I decided to use find to get include option to other header files. To list the right path, I need to use cd with it, like:
cd 'PATH/TO/HEADER/FILE'
find ../....
1
vote
0
answers
89
views
squashed then re-squashed give different size?
I extracted a firmware.bin using fmk mod kit and gave me 3 files: header.img , rootfs.img and footer.img now whenever I cat and repack all the files together in firmware2.bin again, it works and it ...
0
votes
1
answer
81
views
How are conflicts avoided in Linux Headers?
I'm trying to understand how Linux works and how to build modules.
So far I saw that Linux headers are stored in /usr/include and that the compiled implementation of these interfaces are located in /...
3
votes
0
answers
329
views
<filesystem> header library for gcc-c++ on AIX
I'm working on porting some code to AIX from Linux. The code makes use of c++17's header.
#include <filesystem>
...
std::ifstream is(path);
if (!is.is_open() && std::filesystem::path(...
0
votes
1
answer
154
views
Install matching Linux header files after Linux kernel upgrade
I recently upgraded my Linux kernel from 4.19.20 to 5.5.0-0.bpo.2-amd64.
sudo apt install linux-headers-$(uname -r) outputs:
Reading package lists... Done
Building dependency tree
Reading ...
0
votes
1
answer
630
views
How can I compile pacat-simple.c?
I want to try writing some code to do audio playback with pulseaudio. There is a simple example program included in the official docs: pacat-simple.c.
I made sure the libpulse-dev package was ...
0
votes
1
answer
806
views
How to set compiler specific standard headers #include paths?
What is a smart way to tell two compilers to look for their #include headers?
Running on a standard Linux 86x64 system, my standard compiler is gcc (currently v9.3).
Now I'd like to compile some ...
1
vote
1
answer
2k
views
Nvidia driver installation error
I'm new to the Linux world and I have a problem that is ruining my experience right now. I have installed Linux Mint 19.3 on my Laptop and immediately noticed a lot more battery drainage compared to ...
0
votes
1
answer
2k
views
How enable content-length header using .htaccess?
I have a seriously big problem, when i download any file for example: myfile.zip, or when i load a page for example: myserver.com/welcome.html, the response headers not include content-length and the ...
-3
votes
1
answer
919
views
How do I count all the lines of code in all headers and source files in a folder? *.cpp *.h [duplicate]
Say I have a project folder containing a number of header and source files for c++;
How would I count the total number of lines of all of these?
1
vote
2
answers
267
views
vim: open file under cursor in read-only (no swapfile)
so, we all know of gf, :find, etc, but is there a read-only equivalent, the :view to their :edit?
i just want an easy shortcut to open system headers without creating a swapfile
:find +set\ noma\ ro ...
0
votes
1
answer
198
views
How to access kernel header files? [closed]
I'm a student working with the Linux kernel, and was wondering how to access methods and macros in the kernel header files from outside the kernel in an OS. I apologize if this is an ignorant question,...
-1
votes
1
answer
86
views
Did I Mess Up My Computer with Recursive rm of '*.h"
So I was basically trying to print all files with a .h file extention out of curiosity, and so I simply googled how to do that. Unfortunatley, I didn't pay close enough attention to the answer and ...
1
vote
1
answer
89
views
Solaris 11 - PAM application
I'm trying to compile an application which interacts with the PAM system on Solaris 11, however everytime I try compile the code I get
"fatal error: security/pam_appl.h: No such file or directory"
...
0
votes
2
answers
9k
views
Curl : Read headers from a file and use them in a cURL command
I have a bash script with the following curl command :
curl -v -X GET https://example.com -H ~/Desktop/headers.txt -o ~/Desktop/file.txt
When i run the bash script i am getting unothorized 401. ...
0
votes
1
answer
653
views
What Debian/Ubuntu package has the documentation for the standard C headers?
On the back of this question, but Debian/Ubuntu specific that has C-standard library headers like (taken from Wikipedia)
assert.h , complex.h , ctype.h , errno.h , fenv.h
, float.h , inttypes.h , ...
0
votes
0
answers
34
views
Looking up docs for C header files? [duplicate]
On Ubuntu if I type man 2 time I get,
NAME
time - get time in seconds
SYNOPSIS
#include <time.h>
time_t time(time_t *tloc);
...
I get that this works because time is the ...
-1
votes
2
answers
324
views
Getting strange LD_PRELOAD errors and missing include files - is my distro busted?
For the past half-day or so, I've been having at least the following problems:
I get errors about missing LD_PRELOAD entries: My LD_PRELOAD contains /lib64/libstdc++.so.6 (not sure if that makes ...
4
votes
2
answers
551
views
Undoing C syntax mangling macros to make exctags able to create prototype tags
I can successfully create a tags file for vim with exctags (Exuberant Ctags).
However, creating tags allowing to jump to the prototype of a function does not work, due the system headers using a ...
0
votes
2
answers
3k
views
VBox Guest Additions installation can't find headers for Kali kernal 4.14.0-kali1-amd64
I have installed Kali in VirtualBox and now trying to install Guest Additions to get full screen view.
I updated and installed my packages and installed dkms. When I try to install linux-headers I ...
1
vote
1
answer
166
views
How to use development package installed by sys package manager?
I'm confused as to how to use *-dev packages in Ubuntu.
I want to use the libxml2 library, in Ubuntu, for my own code development. I installed libxml2-dev using apt-get, which put the header files ...
0
votes
1
answer
61
views
Barman >1.5.1 for Ubuntu 16.04
I use Barman 1.5.1 on Ubuntu 16.04.
For several weeks, barman has been working smoothly. Some days ago I noticed something strange.
Instead of backups I find other files in the <SERVER>/base/ ...
-1
votes
1
answer
672
views
Include a header file into multiple C files
I am modifying the linux kernel for a device locally and I added a header file, say a.h inside /include/linux and referenced it in two C files inside the kernel directory. The header file contains a ...
-2
votes
1
answer
1k
views
Read standard library header file in terminal [closed]
is there any way to read a standard header file, say float.h , in terminal ? Sometimes it would be nice to know what are the names of some values, say max value of float or something like that.
1
vote
1
answer
332
views
problem on zlib
I'm trying to install a package (named FIESTA). When I run make, I get a error message "zlib.h is required".
I'm pretty sure that zlib1g is installed, and zlib.h can be found in /usr/include. How ...
3
votes
0
answers
902
views
How to install Linux 3.2.40 headers on Synology DS214 with DSM 6.1?
Since I'm tired of cross-compiling and already have a working (cross-compiled) gcc on my Synology DiskStation DS214 with DSM 6.1, I'd like to install the Linux headers of the Linux version running on ...
5
votes
2
answers
9k
views
configure: error: libcurl >= 7.28.0 library and headers are required with support for https
Hi I met an issue when I tried to configure for R installation.
Basically, I tried to follow my previous installation process,
(For some reason, I need to reinstall the same R in CentOS6 instead of ...
1
vote
1
answer
2k
views
Reliably detect Python 3 development files
I have a shell script which installs all required packages for a project. Some of those packages are Python 3 based and require to compile things and for this the Python sources need to be installed1 (...
4
votes
2
answers
4k
views
fatal error: mcrypt.h: No such file or directory
I am trying to cross compile a C code which uses a header file mcrypt.h.
I am compiling my code in Ubuntu distribution and my target is an openwrt distribution. I am getting the below error while ...
0
votes
2
answers
107
views
Restore original string.h after accidental overwrite [closed]
I was reading the header files for c and by accident, i changed something (i deleted some stuff by accident) I closed out of sublime text editor, expecting it to ask me to save, but it saved ...
1
vote
1
answer
4k
views
Installing Kernel Headers offline - Linux Kali
I need to install Kernel Headers to install nvidia graphics driver to run linux kali.
Now here is the tricky part, it must be done completely offline. I have no idea how to do it. Kali is freshly ...
1
vote
1
answer
516
views
Automatic generation of LDFLAGS, CPPFLAGS and other from error messages [closed]
While integration, merging, porting and cross-compilation of various projects I encounter many errors caused by missing headers or undefined symbols. Then I manually search headers and libraries to ...
1
vote
1
answer
3k
views
Path to x86_64 linux kernel headers
I want to compile program using some linux kernel headers. But, if I just add -I/usr/src/linux-headers-4.4.0-36/include it can't find linux/export.h. I saw files with same name in arch/architecture, ...
2
votes
3
answers
1k
views
What is BTN_TRIGGER_HAPPY?
I'm writing kinda virtual keyboard using uinput and during looking into what all should I put into
ioctl(fd, UI_SET_KEYBIT, ???);
I found input-event-codes.h. Some constants there are pretty self-...
4
votes
1
answer
3k
views
How to compile against a custom kernel (Debian)?
There is a file version.h in /usr/include/linux. Many header files include this file and use the defines in there for their own ifdefs.
However, when I compile my own kernel, I cannot see how this ...
0
votes
1
answer
727
views
Linux Crypto API headers missing
As soon as headers are essential to deal with crypto algorithms, provided by kernel, I've installed linux-headers-4.4.0-1-amd64.
However, this did not added files like crypto.h, module.h and init.h ...
1
vote
3
answers
33k
views
Installing VMware. Error : Kernel headers for version 4.3.0-kali1-amd64 were not found
Trying to install VMware Player on Kali Rolling (debian Wheezy). When running VMware Player for first time after installation I get:
Error: C header files matching your running kernel were not ...
3
votes
2
answers
2k
views
How to get the absolute position (x, y coordinates) of a finger on a touchpad?
Main question: How to get the absolute finger position on the touchpad?
I would like to get the absolute position (x, y coordinates) of a finger on a touchpad? I believe it is possible to extract it ...
1
vote
1
answer
1k
views
Why do the Linux kernel headers contain references to nonexistent headers?
I'm trying to build IBCS (source here) on Ubuntu 15.10 (Linux 4.2.35).
This module is obviously pretty old, because its CONFIG.i386 file gives gcc an option -m486, which doesn't exist anymore, but ...
4
votes
1
answer
295
views
No stdlib in UNIX v7?
Browsing through the v7 UNIX Sources I noticed there is no "stdlib" directory - further more using a v7 UNIX Emulator, there is no such file as <stdlib.h>. However functions like exit() and ...
2
votes
1
answer
18k
views
How to create /usr/src/linux-headers-{version} files
I am trying to compile a custom kernel for Nvidia's Jetson TK1 board, and it seems that as well as the kernel itself (zImage) I will need /usr/src/linux-headers-{version} and /lib/modules/{version}.
...
6
votes
2
answers
1k
views
Get header of the C function from BASH
I want to get the header(s) that I need for a given C function - e.g. when I want to see what to include when I want to use fork(), I can type out man fork and see that it's #include <unistd.h>. ...
0
votes
2
answers
850
views
Install Debian kernel header files 3.4.90+ via terminal for ARMHF
I am trying to install the kernel header files on Debian via the terminal,
but it does not seem to exist in apt-get.
The reason I need the kernel header files is because I need to
install WiFi ...
3
votes
1
answer
21k
views
mpi.h not found
I tried to compile the Hello World program in C, inside Eclipse PTP, but it gives me an error related to mpi.h.
I have included /usr/local/include and /usr/local/lib in my paths, and also tried ...
0
votes
1
answer
398
views
understanding this cpu utilization script
I need to understand the below Script :
HEADER='CPU pctUser pctNice pctSystem pctIowait pctIdle'
HEADERIZE="BEGIN {print \"$HEADER\"}"
PRINTF='{printf "%-3s %9s %9s %9s %9s %9s\n", ...
0
votes
1
answer
1k
views
Get an error when trying to install Matlab 2014a on Debian
I'm trying to install Matlab 2014a on Debian Testing. When I run the install script with
sudo ./install -javadir /usr/lib/jvm/java-7-openjdk-amd64/jre/
I get this output
Preparing installation ...
1
vote
0
answers
3k
views
Cannot find HDF5 header files when installing h4toh5 in Debian
When trying to install h4toh5 on a Debian system, using:
./configure CC=/usr/bin/h4cc --with-hdf5=/usr/include/hdf5/serial
I have errors such as:
checking for hdf5.h... no
configure: ...