Problems with search paths
When you type this:
c++ --help
you get this:
-B <directory> Add <directory> to the compiler's search paths
I have created two folders in the root directory of my drive. C:\Test and C:\Test2. Both folders contain the file "header.h".
I use the following command:
c++ C:\test.cpp -B "C:\Test;C\Test2" but I get
C:\test.cpp:3:20: header.h: No such file or directory
Regardless what I do, I get the same error message.
c++ C:\test.cpp -B"C:\Test;C\Test2" but I get
C:\test.cpp:3:20: header.h: No such file or directory
c++ C:\test.cpp -B C:\Test;C\Test2 but I get
C:\test.cpp:3:20: header.h: No such file or directory
c++ C:\test.cpp -I "C:\Test;C\Test2" but I get
C:\test.cpp:3:20: header.h: No such file or directory
c++ C:\test.cpp -I"C:\Test;C\Test2" but I get
C:\test.cpp:3:20: header.h: No such file or directory
Well, other compilers have no problems with this. The only one with the problem is GNU C++.
Could be something wrong with my environment settings but that won't make a lot of sense? I am already telling the compiler where are the include files.
When you type this:
c++ --help
you get this:
-B <directory> Add <directory> to the compiler's search paths
I have created two folders in the root directory of my drive. C:\Test and C:\Test2. Both folders contain the file "header.h".
I use the following command:
c++ C:\test.cpp -B "C:\Test;C\Test2" but I get
C:\test.cpp:3:20: header.h: No such file or directory
Regardless what I do, I get the same error message.
c++ C:\test.cpp -B"C:\Test;C\Test2" but I get
C:\test.cpp:3:20: header.h: No such file or directory
c++ C:\test.cpp -B C:\Test;C\Test2 but I get
C:\test.cpp:3:20: header.h: No such file or directory
c++ C:\test.cpp -I "C:\Test;C\Test2" but I get
C:\test.cpp:3:20: header.h: No such file or directory
c++ C:\test.cpp -I"C:\Test;C\Test2" but I get
C:\test.cpp:3:20: header.h: No such file or directory
Well, other compilers have no problems with this. The only one with the problem is GNU C++.
Could be something wrong with my environment settings but that won't make a lot of sense? I am already telling the compiler where are the include files.



- carpe noctem