engenuity
Starting Member
Canada
1 Posts |
Posted - Mar 30 2009 : 2:23:12 PM
|
Symbols definitions cannot be found when the definition is located in a file which is included inside a class definition body. In the following example, we canG??t get reference to MyTestFunction() in OtherClass.cpp.
MyClass.h: -----------
class MyClass { public: int something:
#include G?extrafunctiondefinition.hG?
};
extrafunctiondefinition.h: --------------------------
// the following code is included by MyClass private: MyTestFunction(){};
// end of file
OtherClass.cpp: ---------------
#include G?MyClass.hG?
OtherClass::foo() { MyClass::MyTestFunction(); <-- right-clik/got o definition or clicking the "go" button will not find the definition. }
// end of file ---------------------------------------------------- Visual Assist X Version 10.5.1715.0 build 2009.01.25
Microsoft Visual Studio 2005 (English) Version 8.0.50727.762 (SP.050727-7600) Microsoft .NET Framework Version 2.0.50727
Installed Edition: Professional
Microsoft Visual C++ 2005 77626-009-0000007-41995 Microsoft Visual C++ 2005
Microsoft Visual Web Developer 2005 77626-009-0000007-41995 Microsoft Visual Web Developer 2005
Microsoft Web Application Projects 2005 77626-009-0000007-41995 Microsoft Web Application Projects 2005 Version 8.0.50727.762
DirectX extensions for Visual Studio DirectX extensions for Visual Studio .NET
Microsoft Visual Studio 2005 Professional Edition - ENU Service Pack 1 (KB926601) This service pack is for Microsoft Visual Studio 2005 Professional Edition - ENU. If you later install a more recent service pack, this service pack will be uninstalled automatically. For more information, visit http://support.microsoft.com/kb/926601
Visual Assist X For more information about Visual Assist X, see the Whole Tomato Software website at http://www.WholeTomato.com. Copyright (c) 1997-2009 Whole Tomato Software, Inc.
|
Edited by - engenuity on Mar 30 2009 5:11:13 PM |
|