Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Field ' ' could not be resolved
Field ' ' could not be resolved [message #924632] Wed, 26 September 2012 22:12
Bob Zhang is currently offline Bob Zhang
Messages: 1
Registered: September 2012
Junior Member
Hi,
I had some code as follows, when I opened my project, some errors appeared like
Field ' ' could not be resolved.
Please help me to solve the problem ,thx!

a.h

typedef struct
{
    int a;
} ctx_t;

.....
-----------------------------

b.h

typedef struct
{
    int b;
} ctx_t;

....
-----------------------------
a.c

#include "a.h"

void func()
{
    ctx_t *ctx = calloc(1, sizeof(ctx_t));
    ctx->a = 9; //[u][b]here I got the error: Field 'a' could not be resolved[/b][/u]
}
...
Previous Topic:eclipse mac won't recognize already existing java programs
Next Topic:Suspiciously high number of pre-processor statements in the IASTTranslationUnit
Goto Forum:
  


Current Time: Fri Jul 25 11:27:16 EDT 2014

Powered by FUDForum. Page generated in 0.02082 seconds