Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 missing headers/symbols (/external:I)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

DanV
New Member

5 Posts

Posted - Nov 14 2023 :  07:10:53 AM  Show Profile  Reply with Quote
Hello,
I am using VAssistX.GotoImplementation, but it does not find some headers and symbols in them. For example Boost or Qt (we use cmake and conan to generate project files).

Those directories paths are not defined in <AdditionalIncludeDirectories> but they are defined in <AdditionalOptions> (C/C++, Command Line, Additional Options).
For example:
<ClCompile>
...
<AdditionalOptions>/external:I "c:/.conan/3d1a257/1/include" ...</AdditionalOptions>
...
</ClCompile>

Is it possible to fix missing headers by adding support for /external:I?

Thanks

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Nov 14 2023 :  10:55:29 AM  Show Profile  Reply with Quote
Apologies for this problem, we don't currently pick up that setting, as you see:

case=148685

This has come up before, and a couple of suggestions for work arounds were made. First, can you please try adding

set(CMAKE_NO_SYSTEM_FROM_IMPORTED TRUE)

to your cmake file. This should move the include directories back to "Additional Include Directories" in MSVC IDE for targets.

A second suggestion is is putting

unset(CMAKE_INCLUDE_SYSTEM_FLAG_CXX)

right after the project call in the toplevel CMakeLists.txt. The person who suggested this said that this just happens to work currently, because of how the SYSTEM includes are implemented on the Visual Studio generators.

Hopefully one of these two options works quickly and easily for you.

zen is the art of being at one with the two'ness
Go to Top of Page

DanV
New Member

5 Posts

Posted - Nov 14 2023 :  1:16:31 PM  Show Profile  Reply with Quote
Thanks, I can suggest it, but unfortunately it's not only up to me. It's a quite big company project.
I hope someday Visual assist will support /external:I.
And how can I view case=148685 please?
Go to Top of Page

DanV
New Member

5 Posts

Posted - Nov 15 2023 :  03:04:14 AM  Show Profile  Reply with Quote
I found out, that I do not have to ask anybody. There is option Add Cache Entry in cmake.
And it works, thanks.



Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Nov 15 2023 :  10:26:37 AM  Show Profile  Reply with Quote
Thank you for explaining how you solved this, I have added a note about this to the case, to help anyone else who runs into this before we get a fix for this in VA.

We are hoping to get to this fairly soon, but unfortunately I don't currently have an estimate for when that will happen.

You cannot view the case directly, our bug tracker isn't publicly visible, but this thread should be updated when this is fixed, and you can always ask about the status of a case and I will check for you.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000