Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Code Completion problem on diffrerent project's header
Code Completion problem on diffrerent project's header [message #720250] Tue, 30 August 2011 04:35
Eclipse UserFriend
Hi everybody?

I usually work with code completion feature of Eclipse.
But I faced some trouble with using it.

1. Let's consider we have two projects in the Eclipse workspace.

    Project A
        header.h

    Project B
        program.c

2. Project B refer Project A (refered via project B's properties > c/c++ general > path and symbols > reference tab)

3. Originally, header.h defined a struct which has two int variables
    
    typedef struct _temp {
        int a;
        int b;
    } TEMP;

4. So far, Code completion works great on program.c

5. But, I couldn't see 'int c;' on code completion output after I added 'int c;' on struct TEMP.



How can I fix this problem?
I tried to fix it via Index > Rebuild on Project Explorer's context menu.
But it is too stupid to handle this I think.

Are there any good suggestions?
Any comments would be appreciated!
Have a nice day~

[Updated on: Tue, 30 August 2011 04:36] by Moderator

Previous Topic:how to import a exsiting makefile project
Next Topic:-l: option
Goto Forum:
  


Current Time: Fri Jul 18 15:50:34 EDT 2025

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

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

Back to the top