MSVS: Cannot find where a global variable is declared or defined
  Home FAQ Contact Sign in
comp.os.mswindows.programmer.win32 only
 
Advanced search
POPULAR GROUPS

more...

comp.os ... win32 Profile…
 Up
MSVS: Cannot find where a global variable is declared or defined         


Author: Ramon F Herrera
Date: May 1, 2008 20:54

I am used to IDEs such as Eclipse, NetBeans or the ones from Borland,
now trying to learn Visual C++.

One of the most basic operations is the ability to double-click on
*any* variable or other symbol, and find out where it is defined or
declared.

Is this feature supposed to work properly in Visual Studio (2005,
version 8)?

When I double click on one particular variable (which happens to be
global), I get this error message:

"The symbol 'xyz' is not defined."

The "Find All References" produces this:

"The symbol 'xyz' is not referenced."

Can anyone confirm or explain this behavior?

TIA,

-RFH
2 Comments
Re: MSVS: Cannot find where a global variable is declared or defined         


Author: r_z_aret
Date: May 2, 2008 11:31

On Thu, 1 May 2008 20:54:02 -0700 (PDT), Ramon F Herrera
conexus.net> wrote:
>
>I am used to IDEs such as Eclipse, NetBeans or the ones from Borland,
>now trying to learn Visual C++.
>
>One of the most basic operations is the ability to double-click on
>*any* variable or other symbol, and find out where it is defined or
>declared.
>
>Is this feature supposed to work properly in Visual Studio (2005,
>version 8)?
>
>When I double click on one particular variable (which happens to be
>global), I get this error message:
>
> "The symbol 'xyz' is not defined."

You probably need to enable "Browsing". Look in Project -> Settings ->
C/C++ -> General _and_ Project -> Settings -> Browse Info
Show full article (1.23Kb)
no comments
Re: MSVS: Cannot find where a global variable is declared or defined         


Author: JussiJ
Date: May 4, 2008 19:06

On May 2, 1:54 pm, Ramon F Herrera conexus.net> wrote:
> When I double click on one particular variable (which happens
> to be global), I get this error message:
>
>     "The symbol 'xyz' is not defined."
>
> The "Find All References" produces this:
>
>     "The symbol 'xyz' is not referenced."
>
> Can anyone confirm or explain this behavior?

If the symbol 'xyz' is in fact not defined, then yes.

Does the 'find in files', file search option find any
references to 'xyz' ?

Jussi Jumppanen
Author: Zeus for Windows IDE
http://www.zeusedit.com
no comments