I am having some serious problems with the creation of windows in Xlib, as many must know the clang compiler doesn't link to X11/Xlib.h, well that can be circumvented by using gcc, but when I use it instead of clang it always give me symbol errors with the definitions of the functions, structs, etc, anyways code from the Xlib.h file. When I manage to produce an object file and try to link it I can't because of some problem with main in the /usr/bin/ld file. So my question is there is something I'm doing bad?, maybe I'm the one wrong, but if not what are the steps I must take in order to run my programs, please I'm currently stuck, any help will be highly appreciated, if you are willing I will write a book and give you credit
.