|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
MinGW cannot find relative pathsI have an application which uses a large number of different header files, which are referenced according to relative paths. None of the paths have spaces; an example is: #include "../../JoystickWidgets/AbstractJoystick/abstractjoystick.h" When I compile the project using Microsoft C++, it compiles perfectly. When compiling the exact same source files with MinGW, however, it fails at certain points in the compile process emitting errors of the form: "../../JoystickWidgets/AbstractJoystick/abstractjoystick.h: No such file or directory" Moreover, I can sometimes get rid of an error by expanding the path; for example, if I get the error above, it can go away if I put: #include "../../../CustomWidgets/JoystickWidgets/AbstractJoystick/abstractjoystick.h" ...but then I might get a new error from a different file with a similar include statement. Note that: 1) The errors are emitted while the corresponding .cpp files are being compiled; it seems to be the compiler itself which is having trouble with the paths, not the makefile. 2) The issue is only seen when I compile the full project; the errors are not seen when compiling smaller subsets of it, or when compiling complete smaller projects from the same source files. I am using MinGW 3.4.5 (which came bundled with Qt Creator 2009.03) under Vista SP2. Any advice would be greatly appreciated. __________ Information from ESET Smart Security, version of virus signature database 4578 (20091106) __________ The message was checked by ESET Smart Security. http://www.eset.com ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ MinGW-users mailing list MinGW-users@... A: Yes. > Q: Is it really? >> A: Because the logical conversation flow is disrupted. >>> Q: Why does MinGW object to top posting? (abstracted from Larry Hall signature) This list observes the Etiquette found at http://www.mingw.org/Mailing_Lists. We ask that you be polite and do the same. Most annoying abuses are: 1) Top posting 2) Thread hijacking 3) HTML/MIME encoded mail 4) Improper quoting 5) Improper trimming _______________________________________________ You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |
|
|
Re: MinGW cannot find relative pathsOn 2009-11-06 11:08Z, Stephen Morris wrote:
> [...headers on relative paths not found, e.g.:] > > "../../JoystickWidgets/AbstractJoystick/abstractjoystick.h: No such file or > directory" [...] > 1) The errors are emitted while the corresponding .cpp files are being > compiled; it seems to be the compiler itself which is having trouble with > the paths, not the makefile. > 2) The issue is only seen when I compile the full project; the errors are > not seen when compiling smaller subsets of it, or when compiling complete > smaller projects from the same source files. First, see whether this helps you: http://www.mingw.org/wiki/IncludePathHOWTO If not, then the next step is to post a minimal self-contained test case so that others can easily reproduce the problem. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ MinGW-users mailing list MinGW-users@... A: Yes. > Q: Is it really? >> A: Because the logical conversation flow is disrupted. >>> Q: Why does MinGW object to top posting? (abstracted from Larry Hall signature) This list observes the Etiquette found at http://www.mingw.org/Mailing_Lists. We ask that you be polite and do the same. Most annoying abuses are: 1) Top posting 2) Thread hijacking 3) HTML/MIME encoded mail 4) Improper quoting 5) Improper trimming _______________________________________________ You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |
|
|
|
|
|
|
|
|
|
| Free embeddable forum powered by Nabble | Forum Help |