From: <raj...@wi...> - 2008-11-21 12:04:59
|
Hi, I am facing problems with my compilations. Due to unforeseen issues with my compiler in Unix and I am forced to compile my embedded projects in Windows. I am using the msys environment since lots of my make file contains the sh scripts. I am able to successfully change the environment to msys. I am facing a problem where in my .c source files are not able to find the header files which are located in the other directories. In some location in .c source files we have definitions such as #include "dir/header.h" Due to this when msys tries to find the file, it jumbles up the path and complains that it is not able to fetch the corresponding header file. Hence the compilation fails. Is there any way I can control the Path conversion. I tried to get the info from the mailing list but couldn't find any. I want the msys to disable the path conversion and use only the pure Unix based path. Or there is any other way I can do this. Your inputs will help to great extend. With Regards, Rajneesh V |
From: Keith M. <kei...@us...> - 2008-11-21 20:35:26
|
On Friday 21 November 2008 12:06:49 raj...@wi... wrote: > I am facing a problem where in my .c source > files are not able to find the header files which are located in > the other directories. There has been an almost identical query, within the last week, on the MinGW-Users list, (which is probably where this would have been best asked too). > In some location in .c source files we have definitions such as > #include "dir/header.h" Are you saying that your compiler cannot find these header files, when you try to compile the code? If so, then this has nothing to do with MSYS path translation; `dir/header.h' must be a relative path, which is relative to the directory in which the source file containing the `#include "dir/header.h" directive is to be found. Otherwise... > Due to this when msys tries to find the file ...you will have to explain, preferably by means of a minimal self contained example, exactly what you mean by this. You need to show us what is happening, to lead you to the conclusion that `MSYS cannot find the header files'. How have you actually instructed MSYS, rather than your compiler, to look for them? Regards, Keith. |