06-19-2010, 12:25 PM
#include <file> includes from the library; in order to include from the directory of the including file, the main program, i tried #include <./file> but it doesn't work. Even #include <~/path_to_the_project/file> doesn't work.
The only solution I've found is: #include </home/user/path_to_the_project/file>, that is, including the whole path from the file system root.
Is there any way to configure the including directories? It would be great to include files with relative path from the current directory if they exist, and from the library if they don't exist.
The only solution I've found is: #include </home/user/path_to_the_project/file>, that is, including the whole path from the file system root.
Is there any way to configure the including directories? It would be great to include files with relative path from the current directory if they exist, and from the library if they don't exist.
Marcos Cruz
http://programandala.net
http://programandala.net