Good day.
I'm trying to learn programming by myself, today it's a hobby. I decided to stop on Linux, Bash, C ++, Scheme, and not to use IDE now. I go here with a hope to seek the advices and answers, if any will be, but I beg do not urge that my choice ( Linux, Bash, C ++, Scheme, and not to use IDE now) is need to change. The site impress! Examples are giving a hope, there is wish to dive in learning, that and was done. Although a keen wish to see even smallest window is present still. A windowing cause many problems. My Debian8.8 and it's Synaptic allowed me load many all, but because I'm still stupid my File Manager with heaps of folders has inclining me to fear. While I was doing examples from this site and cppreference.com everything was fine, I had enough putting examples and a link to g ++ in a separate folder. However the attempt
----------------------------------
* Simple Xlib application drawing a box in a window.
* gcc input.c -o output -lX11
#include <X11/Xlib.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void)
{------------- etc.
----------------------------------
had been spitting:
----------------------------------
user@debian:~/My-folder$ g++ -std=c++11 my.cpp
my.cpp:6:22: fatal error: X11/Xlib.h: No such file or directory
#include <X11/Xlib.h>
^
compilation terminated.
----------------------------------
There is not X11/Xlib.h in comp., I searched. I understand that need put libraries, but wish knew what and where. Tell me please. Which libs to put? I had read many about that, but bad English and absent skills don't give answers, though I picked:
https://pocoproject.org/
http://nanapro.org/en-us/
http://fox-toolkit.org/
Now they are lay each in their folder. What further? What packets need still? In common nothing explain in any manuals, I found only
http://www.cprogramming.com/tutorial/shared-libraries-linux-gcc.html#fnref:2 but understood a bit. Prompt what do and where seek info, please. Quickly converse I do not may, yet read carefull. Thank all.