how do i tell gcc on my redhat linux box to search a folder and all subfolders for includes. also how do i tell my program to search for files on my *nix box?
Printable View
how do i tell gcc on my redhat linux box to search a folder and all subfolders for includes. also how do i tell my program to search for files on my *nix box?
Under Unix, you can use the output of the "find" command. I don't think most compilers allow you to have recursive searching for include files, since you can include from different directories:Code:#include <bits/std_iostream.h>
i have to find a way, becuase i cant use any includes, :(
Can't use *any*? What do you mean?
if i
#include <IOSTREAM>
says not found
#include <IOSTREAM.h>
says not found
#include </usr/include/IOSTREAM>
not found
...
...
...
...
every thing i try it wont find any thing.
i tried coping the includes to my files home dir, it works, but there are so many it needs.
Try <iostream>.
All of the system-provided include files are lowercase.
Using uppcase letters in all or part of the name (on unix ) is a good way to differentiate your home grown includes from the standard library.
i tried lower and upper, i tried I- /usr, as there are many folders with the includes, and it still wont compile its missing tto much stuff.