Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Problems of viewing code in a external static lib

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
xMRi 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
5   L A T E S T    R E P L I E S    (Newest First)
feline 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
}
xMRi 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.

feline 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.
xMRi 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?
feline 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.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000