Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Configure Eclipse to include the system includes before the user includes during a build(Using eclipse with Mingw compiler for Unit Tests for an embedded system to run on windows)
Configure Eclipse to include the system includes before the user includes during a build [message #1096770] Wed, 28 August 2013 17:02
Eclipse UserFriend
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
Previous Topic:C/C++ comments: line wrap / format paragraph / auto fill
Next Topic:Unresolved Global Assembler Symbols in Mixed Assembly/C Project
Goto Forum:
  


Current Time: Tue May 20 03:08:39 EDT 2025

Powered by FUDForum. Page generated in 0.35999 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top