Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

So the x11 directory defined in the makefile is: usr/X11R6/lib64, which does not exist. however, the project compiles perfectly in Kdevelop and runs with no problems.

If I take out all inclusions of x11 in the makefile, it doesn't compile.

(1) Does the compiler search for x11 libs somehow if the dir specified does not exist?

(2) How can I find where exactly x11 libs are in my computer?

For (2), I've found /usr/lib/X11, but I can't find any library files in there...

(I am attempting to rewrite the makefile in CMake format in Kubuntu, if that matters at all.)

Thanks!

share|improve this question
add comment

1 Answer 1

  1. Yes, gcc checks /usr/include to satisfy #include directives by default.

  2. Try locate -b '\X.h'. My system finds it in /usr/include/X11.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.