I will try the suggestions but in the meantime I also seem to think that the problem is the IDE has its own facility whereby you make it recognise custom libraries. I think its called PAKage manager or Devpak or something. Ill try that in the near future and see my luck
First, man gcc and read up on the compiler. Even if you aren't using GCC, the theory is basically the same for all compilers--there are parameters to tell it where to look for header files, libraries, etc.. Once you understand what the compiler needs, you just have to find out how to give it that information from your IDE.