Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] Exception thrown while using C/C++ Indexer

Hi Beth

To add entries to list of Includes, I'm using following snippet

		IPath newPath = getLocationPath();
    		String linkDirPath = newPath.toString() + "/" +
    		String[] argLinks = new String[] {
    				linkDirPath + "/usrIncludeLink",
    				linkDirPath + "/usrLink", "/usr",
    				linkDirPath + "/aCCIncludeIostreamLink",
    		AddLinks(newProject, argLinks);
	    	ICProject cProject =
	        List newEntries = new ArrayList(argLinks.length/2);
	        for(int cnt = 0; cnt < (argLinks.length/2); cnt++)
Path.EMPTY, new Path(argLinks[(2*cnt)]), true));

In the above code, AddLinks simply creates links to remote include

Hope this helps.


-----Original Message-----
From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx]
On Behalf Of Beth Tibbitts
Sent: Tuesday, July 18, 2006 5:40 PM
To: CDT General developers list.
Subject: Re: [cdt-dev] Exception thrown while using C/C++ Indexer

>I'm adding some default directories to the list of Includes for the 
Kumar, can you post how you did this? I did a similar thing but had to
enumerate through all the configuration and options, and poke around...
For now it's hardcoded to the gnu gcc option too...
 - seems like from your discussion and Mikhail's suggestion you found a
more direct way.
I'm still not happy with how I did it, want to generalize it a bit more.


Beth Tibbitts  (859) 243-4981  (TL 545-4981) High Productivity Tools /
Parallel Tools IBM T.J.Watson Research Center
Mailing Address:  IBM Corp., 455 Park Place, Lexington, KY 40511

cdt-dev mailing list

Back to the top