Skip to main content



      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 07:41
Eclipse UserFriend
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: Tue Jul 08 14:34:30 EDT 2025

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

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

Back to the top