I need a real help to compile a small program which compiles fine with g++ in Linux machines. However I need to compile-it in my machine with g++. I have this problem and I dont know how to solve it: sys/sysinfo.h: No such file or directory could someone please help me? Thanks
From man sysinfo:
SYSINFO(2) Linux Programmer's Manual SYSINFO(2)
NAME
sysinfo - returns information on overall system statistics
SYNOPSIS
#include <sys/sysinfo.h>
int sysinfo(struct sysinfo *info);
DESCRIPTION
...
CONFORMING TO
This function is Linux-specific, and should not be used in programs
intended to be portable.
This header and its contents are linux-specific. You're not going to be able to make it compile without rewriting or ripping out whatever parts use it. (The programming forum here may be able to help you with that.) If you're lucky, it's not actually using sysinfo and you can comment out the errant #include.
which program you want to run?
maybe we find it as same or similar