Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Indexer not seeing IPPROTO_IP from netinet/in.h(There seems to be something a little bizarre with the indexer!)
icon5.gif  Indexer not seeing IPPROTO_IP from netinet/in.h [message #968343] Fri, 02 November 2012 11:41
Adam Hill is currently offline Adam Hill
Messages: 1
Registered: November 2012
Junior Member
I'm having a bit of a bizarre indexing issue, and am out of ideas as to how to solve it. ( This is using Juno installed from the CDT tar. )

It first appeared as "Symbol IPPROTO_IP could not be resolved"... the symbol is defined in an enum within <netinet/in.h> and right click -> open declaration takes you to the correct place in that include file.

I then created a quick test:

testin.h:
enum
  {
    IPPROTO_IP = 0,
#define IPPROTO_IP	IPPROTO_IP
    ENUM_TEST_MAX
  };


testin.c:
#include "testin.h"

int test = IPPROTO_IP;


Lo and behold, IPPROTO_IP is underlined in red, same unresolved symbol error. However ( and this is the bizarre bit ) I can "fix" it by doing one of two things:

1) Copy the header file into the .c file - i.e. define the enum within the C source.

or

2) Change IPPROTO_IP to IPPROTO_IP2 wherever it is used. I.e. everything EXACTLY the same, but the name used.

Can anyone who knows more about Eclipse than me ( i.e. anyone Rolling Eyes ) make any sense of this?

Thanks.
Previous Topic:No effect of GTEST_REPEAT in C/C++ Unit Testing Support
Next Topic:Multicore, multiple architecture support for SOC?
Goto Forum:
  


Current Time: Wed Sep 17 17:52:26 GMT 2014

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

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