Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Unresolved Symbols
icon9.gif  Unresolved Symbols [message #913330] Sat, 15 September 2012 05:22 Go to next message
Eclipse UserFriend
Hi Community,

I've a lot of trouble with unresolved symbols in Eclipse CDT Indigo. Below an example:

// File01.c

# define name


// File02:Application.h

# ifndef name
# define pete


// File02:Application.c

int main
{
Function(pete); //the symbol pete can not be resolved!
}


Question: Is there a way to resolve the symbol "pete" with the Indexer?
Re: Unresolved Symbols [message #913469 is a reply to message #913330] Sat, 15 September 2012 14:40 Go to previous messageGo to next message
Eclipse UserFriend
On 09/15/2012 04:22 AM, Pete Miller wrote:
> Hi Community,
>
> I've a lot of trouble with unresolved symbols in Eclipse CDT Indigo.
> Below an example:
>
> // File01.c
> # define name
>
>
> // File02:Application.h
>
> # ifndef name # define pete
>
> // File02:Application.c
> int main { Function(pete); //the symbol pete can not be resolved!
> }
>
>
> Question: Is there a way to resolve the symbol "pete" with the Indexer?
In your example pete isn't defined, so how can the indexer resolve it?
ifndef checks to see that the argument isn't defined. In your example
name is defined so the ifndef name is false and the define pete won't
happen.
Re: Unresolved Symbols [message #915182 is a reply to message #913469] Sun, 16 September 2012 14:54 Go to previous messageGo to next message
Eclipse UserFriend
Is there a workaround in the CDT settings to resolve the symbol (pete) without changing the source?

Thanks in advance.
Re: Unresolved Symbols [message #915205 is a reply to message #915182] Sun, 16 September 2012 16:15 Go to previous messageGo to next message
Eclipse UserFriend
deinfe 'name' in your pre-processor settings. Then it will define 'pete'
Re: Unresolved Symbols [message #915612 is a reply to message #915205] Mon, 17 September 2012 12:28 Go to previous messageGo to next message
Eclipse UserFriend
Marjon Zubiri wrote on Sun, 16 September 2012 16:15
deinfe 'name' in your pre-processor settings. Then it will define 'pete'


Do you mean #pete with value 0? I tried it, but it doesn't work.
icon9.gif  Re: Unresolved Symbols [message #917031 is a reply to message #913330] Wed, 19 September 2012 14:53 Go to previous messageGo to next message
Eclipse UserFriend
Is this for Bugzilla?
icon9.gif  Re: Unresolved Symbols [message #919860 is a reply to message #913330] Sat, 22 September 2012 08:33 Go to previous message
Eclipse UserFriend
Is there another way to switch off some preprocessor directives for the Indexer? I need the F3 Key functionality for the described example.
Previous Topic:Updating the GCC on OSX 10.8
Next Topic:Setting up Eclipse for C++
Goto Forum:
  


Current Time: Thu Jun 19 12:58:39 EDT 2025

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

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

Back to the top