Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » working on MBS feature using eclipse(include path ,shold not display in properties page->settings->compiler->include)
icon2.gif  working on MBS feature using eclipse [message #830180] Tue, 27 March 2012 05:53
Eclipse UserFriend
Cool I am working on MBS feature for remote project's,where i need to add include path so , i used following code :To add entries to list of Includes, I'm using following snippet


IPath newPath = getLocationPath();
String linkDirPath = newPath.toString() + "/" +
REMOTE_LINK_DIR;

String[] argLinks = new String[] {
linkDirPath +
"/usrIncludeLink",
"/usr/include",
linkDirPath + "/usrLink",
"/usr",
linkDirPath +
"/aCCIncludeIostreamLink",
"/opt/aCC/include_std/iostream_compat"
};
AddLinks(newProject, argLinks);


ICProject cProject =
CoreModel.getDefault().create(newProject);


List newEntries = new ArrayList(argLinks.length/2);


for(int cnt = 0; cnt < (argLinks.length/2); cnt++)
{


newEntries.add(CoreModel.newIncludeEntry(Path.EMPTY,
Path.EMPTY, new Path(argLinks[(2*cnt)]), true));

}


cProject.setRawPathEntries((IPathEntry[])newEntries.toArray(new
IPathEntry[newEntries.size()]),
null);
-----------------------------------------------------------
which is working fine, once project created the Includes folder is created with added path entries,but the thing is in the project properties page->C/C++ build->Settings page ,Compiler ->Includes Path's also listing out,if i remove it also removing from Includes folder.

my requirement is to not to list include path entries in Settings page,which i added using above programme. do i need to use any other method,please suggest ,thanks in adavance.
Previous Topic:CDT developer - How do I set the buildPath on a Standard Make Project
Next Topic:Set LDFLAGS and CFLAGS
Goto Forum:
  


Current Time: Mon Jun 16 14:34:49 EDT 2025

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

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

Back to the top