Configure Eclipse to include the system includes before the user includes during a build [message #1096770] |
Wed, 28 August 2013 17:02 |
Eclipse User |
|
|
|
Hello,
I have my Eclipse CDT IDE configured to use the Mingw compiler for my automated unit test project. I am trying to write test suites for a legacy QNX system. The tests are built into an executable that I would like to run within the windows environment.
My tests executed without errors with the Debug configuration but crash in the release configuration. After troubleshooting I found the problem. I have some local QNX include directories specfied in my project to help resolve the header dependencies in my code under test. However those directories also include some standard defines e.g. std::ifstream. Since the user defined paths take precedence over the mingw system paths, the QNX version of ifstream is built into my project and when I execute that in windows it crashes.
I tried to move the system paths above my user paths by navigating to project->properties-> c/c++ general ->Paths and Symbols ->Includes. However the buttons to move up/ move down are disabled for the system paths.
I would really appreciate suggestions to help get around this problem.
Thanks in advance!
Anshu
|
|
|
Powered by
FUDForum. Page generated in 0.35999 seconds