Skip to main content



      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
Eclipse UserFriend
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: Tue Jun 24 13:29:09 EDT 2025

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

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

Back to the top