[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-dev] semantic error
|
Ok, thanks. Are there known bugs in it? I tried the following simple case on OS X:
test.h:
#ifndef TEST_H_
#define TEST_H_
#include <sys/select.h>
struct foo {
struct timeval select_timeout;
};
typedef struct foo foo;
#endif /* TEST_H_ */
test.c:
#ifndef TEST_C_
#define TEST_C_
#include "test.h"
int
main()
{
foo* a;
a->select_timeout.tv_sec = 10;
return 0;
}
#endif /* TEST_C_ */
I've added "." and "/usr/include" to the paths for the project. However I'm seeing an error on tv_sec: field could not be resolved.
Any suggestions?
Thanks,
Greg
On Dec 13, 2010, at 12:51 PM, Alena Laskavaia wrote:
> Yes is Codan kicked it. This gives you errors as your type - but this
> require indexer to be properly set-up.
>
> Two options - you can go to Project Preferences and turn of semantics
> error in Code Analysis preferences or you can fix you project so
> indexer finds all your header files - in this case it would not print
> errors.
>
> On Mon, Dec 13, 2010 at 12:14 PM, Greg Watson <g.watson@xxxxxxxxxxxx> wrote:
>> Hi,
>>
>> After updating my 3.7 installation to CDT 8.0.0.201011050851 on OS X, my C project now shows about 2000 errors where there were none before. All the errors are tagged "Semantic error" and are complaining about types not being resolved.
>>
>> Does anyone know what is going on?
>>
>> Thanks,
>> Greg
>> _______________________________________________
>> cdt-dev mailing list
>> cdt-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/cdt-dev
>>
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev