Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Linked Resources - Code completion unable to show the methods
Linked Resources - Code completion unable to show the methods [message #179360] Tue, 07 November 2006 10:50
Eclipse UserFriend
Originally posted by: pugashp.ami.com

Hi,

I found some strange behavior while using the linked resources for Source
control and code assist.

I have created 2 files c file in one of my root directory

C:\TestInt1\Test.c
C:\TestInt2\Test.h

Test.c
#include<stdio.h>
#include "Test.h"
int main(void)
{

int a, b,c;

a = 10;
b= 15;
c= a + b;

return 0;
}

Test.h
#ifndef TEST_H_
#define TEST_H_
void avg(int k, int m, int l)
{
return 0;
}

void test(char m, int l,int l){
return 0;
}

#endif /*TEST_H_*/



I have added these 2 files into the project as linked resources.

So my project contains

TestVebProj->
.setting
.Project
.CdtProject
Test.c (Note linked resource: C:\TestInt1\Test.c )
Test.h (Note linked resource C:\TestInt2\Test.h)

I tried to get the code completion for avg method in the Test.c file but
I got the message as “no completions available” in the status bar. Note
that the “Test.h” is included in the source file and from the project
point of view we have both the files(even through they are linked files)
in the same project folder. When I copy the Test.h file into the
TestInt1 folder(where the Test.c file exists), then the code completion
popup was displayed. The CIndexer actually checks the same folder ( for
the “” #include ) for the existence of the header file but actually it
should enumerate the project and based on link file it should resolve
the header file location and it should build the indexes.

Note: I have tried with the both content assist scope ( 1. Search content
file and included file, 2. Search current project)

Regards
pugash
Previous Topic:content assist (code completion) does not work properly
Next Topic:Eclipse debug exhibits strange behavior with SLED 10
Goto Forum:
  


Current Time: Fri Jul 25 13:22:46 EDT 2025

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

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

Back to the top