Author |
Topic |
|
xMRi
Tomato Guru
Germany
315 Posts |
Posted - Feb 12 2015 : 01:32:36 AM
|
I have the following Situation. I have a library splitted into \\lib bin include source
And I have a Project that includes this library. So the path \\lib\\include is used by the project. And of course the library from the lib path.
In the library there is a file combination like this: \\lib\\source\\doit.cpp \\lib\\include\\doit.h
My problem: I can find the symbols in the file \\lib\\include\\doit.h but I am not able to goto the implementation of doit.cpp.
What can I do to solve this?
TIA Martin |
Martin Richter [rMVP] WWJD http://blog.m-ri.de "A well-written program is its own heaven; a poorly written program is its own hell!" The Tao of Programming |
|
feline
Whole Tomato Software
United Kingdom
19008 Posts |
Posted - Feb 12 2015 : 11:41:56 AM
|
I suspect adding the source directory to:
VA Options -> C/C++ Directories
Show Directories for = Source files
is going to help here. Which IDE are you using? In newer IDE's VA picks up the stable include directories from the project settings, rather than from the IDE settings, which may have an effect here, unless you want to use a custom directory list. |
zen is the art of being at one with the two'ness |
|
|
xMRi
Tomato Guru
Germany
315 Posts |
Posted - Feb 12 2015 : 12:47:02 PM
|
Thanks for your answer!
I use VS-2013.
I know the settings of stable include files inside VA-X! Are there settings in VS too? If so where? |
Martin Richter [rMVP] WWJD http://blog.m-ri.de "A well-written program is its own heaven; a poorly written program is its own hell!" The Tao of Programming |
|
|
feline
Whole Tomato Software
United Kingdom
19008 Posts |
Posted - Feb 13 2015 : 8:21:37 PM
|
The settings move around a bit, depending on which version of the IDE you are using. They are described here:
http://docs.wholetomato.com/default.asp?W213
for you, please go to Solution Explorer, and right click on your primary project in your solution, and go to "Properties"
Now look at:
Configuration Properties -> VC++ Directories -> Source Directories
this is the setting that VA is using for the stable source files directories, so long as your C/C++ directories platform is set to "Project defined". After editing this setting, please press the button:
VA Options -> Performance -> Rebuild symbol databases
and reload the IDE. This will trigger a full rebuild of VA's stable include directories, which is required since the directory list has changed, and there are now new files to look at.
Hopefully this will just work The main thing to watch for are sub-directories under "\\lib\\source\\", since VA does not automatically scan sub directories in the stable include directories. We follow the same pattern as the compiler here, checking only the directories we are directed to. |
zen is the art of being at one with the two'ness |
|
|
xMRi
Tomato Guru
Germany
315 Posts |
Posted - Feb 17 2015 : 02:17:11 AM
|
Because this library is heavily used I decided to add it to the VAX Setting.
In most cases It works, but I have one case were the source file isn't found.
I don't know why. The source file is already open in the Editor. I am in the header file. I am on a methode declaration inside a class. I press ALT+G and nothing happens. The Header and source are not in the same directory as mentioned above.
Both directories are set the "Custom" settings in the include and source files of VAX.
|
Martin Richter [rMVP] WWJD http://blog.m-ri.de "A well-written program is its own heaven; a poorly written program is its own hell!" The Tao of Programming |
|
|
feline
Whole Tomato Software
United Kingdom
19008 Posts |
Posted - Feb 17 2015 : 6:14:13 PM
|
Is this a method specific problem? If you use alt-g on a different function in the header file, does this jump to the cpp file?
If you are sitting in the cpp file and use alt-g on the function, are you taken to the declaration in the header file?
Since the cpp file is already open in the editor this should eliminate problems with VA finding the file. So this suggests VA is having problems parsing the cpp file. If you show VA Outline, does the outline look correct?
If you open the alt-m list, is the problem function listed?
If the function you cannot jump to is not listed then this would explain the problem the alt-g problem, "simply" leaving us with a file parsing problem. These problems are normally a cascade error, there is something further up the file, often mismatched curly brackets that is confusing our parser. For example:
void functionShowingBrackets()
{
#if 0
{
{
#endif
}
|
zen is the art of being at one with the two'ness |
|
|
|
Topic |
|