Skip to main content

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 HillFriend
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:

    IPPROTO_IP = 0,

#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.


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?

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: Fri Jun 22 02:07:41 GMT 2018

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

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

Back to the top