I am getting an error uXlib.h not found while compiling a program, written in c++

I think the lib file is related UIM/X from the following link


  • What distribution are you using? – Boris Burkov Jul 26 '13 at 8:38
  • @Bob, ubuntu 13.04 – limovala Jul 26 '13 at 8:42

In Debian-based distributions (including Ubuntu), use dpkg -S uXlib.h to find out, from which package a file named uXlib.h comes from (if that package is installed, it will find it).

If that package is not installed, you might want to install apt-file as described here: http://www.debianhelp.co.uk/findfile.htm.

I believe that your file should be in some dev package as headers go there, may be something like libmotif-dev. UPDATE: no, didn't find it in libmotif-dev.

| improve this answer | |

I managed to sovle this issue by copying all the header files from


to /usr/include.

I don't know if its the right way.

| improve this answer | |
  • 2
    Usually, when you manually install a program (not from a package via dpkg, apt, aptitude or synaptic, but manually by downloading a file) it goes to /usr/local filesystem, reserved for local systems administrator manually installed program. So typically, you would put your header file to /usr/local/include as in wiki.debian.org/FMOD#Headers, also see askubuntu.com/questions/17545/…. Though, it varies from distro to distro, some distros put even locally installed headers to /usr/include. – Boris Burkov Jul 26 '13 at 9:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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