I got my program to compile, but it seg faults / core dumps. So I am just piecing it together to see what works and what changes I need to make a file at a time. Having created a main that declare my files.cpp and within that it has imlib2.h that when I try to just compile the main with the files header declared within main, I get this.
to find Xlib.h
so maybe that is why my entire program is crashing. being that Imlib2.h is using Xlib.h and it is not in the standard location it gets that fault, how to side track that?
Code:
[userx@FreeBSD64ssd project]$ c++ main.cpp
In file included from main.cpp:6:
In file included from ./files.cpp:39:
/usr/local/include/Imlib2.h:26:10: error: 'X11/Xlib.h' file not found with
<angled> include; use "quotes" instead
#include <X11/Xlib.h>
^~~~~~~~~~~~
"X11/Xlib.h"
In file included from main.cpp:6:
In file included from ./files.cpp:39:
In file included from /usr/local/include/Imlib2.h:26:
/usr/local/include/X11/Xlib.h:44:10: fatal error: 'X11/X.h' file not found
#include <X11/X.h>
^~~~~~~~~
2 errors generated.
Code:
[userx@FreeBSD64ssd project]$ find / -type f -name Xlib.h
find: /usr/local/share/polkit-1/rules.d: Permission denied
find: /usr/local/etc/polkit-1/rules.d: Permission denied
find: /usr/local/etc/polkit-1/localauthority: Permission denied
find: /usr/local/etc/cups/ssl: Permission denied
/usr/local/include/X11/Xlib.h
find: /usr/local/var/db/tpm: Permission denied
find: /usr/local/var/lib/tpm: Permission denied
find: /media/ada1s5/lost+found: Permission denied
find: fts_read: No such file or directory
so maybe that is why my entire program is crashing. being that Imlib2.h is using Xlib.h and it is not in the standard location it gets that fault, how to side track that?
Code:
[userx@FreeBSD64ssd project]$ c++ I/usr/local/include/X11/Xlib.h main.cpp
c++: warning: treating 'c-header' input as 'c++-header' when in C++ mode, this behavior is deprecated [-Wdeprecated]
c++: error: no such file or directory: 'I/usr/local/include/X11/Xlib.h'