Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I am working with openSuse using C++ (I am a bit new to it)
I have a limited access on this computer, which means I can't be a super user, so in order to add my header files, I put them in a folder, and used this command in the bash shell
and when I tested using
$ echo $PATH
I found that my path is included, but whenever I run the file, it says that it can't find the files.
Adding the directory containing the headers to PATH isn't going to work. You need to add the path to the directory to your CXXFLAGS variable. Something along these lines
However, if the headers you need are in a standard location such as /usr/include, you should be able to use them even without root access. They will be readable to all and that is all that need be done.