Skip to main content


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] Thu, 27 September 2012 02:12
Bob Zhang is currently offline Bob ZhangFriend
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: Wed Apr 24 23:15:14 GMT 2024

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

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

Back to the top