This forum has been archived. All content is frozen. Please use KDE Discuss instead.

VS C++ interpreting "blockmethods.h" in a strange way;

Tags: None
(comma "," separated)
scherady
Registered Member
Posts
2
Karma
0
Hi,
as you can see in this screen shot https://www.dropbox.com/s/fegysuy433z8c ... S.jpg?dl=0, VS C++ is interpreting "blockmethods.h" in a strange way; until now I failed to find an explanation.

I have downloaded the source files of Eigen and made them available in my VS C++ project. Strange enough my project compile without error but when executed it exits after few events with error and without diagnosis.

I found out after investigation that it exits when blockmethods.h is invoked. When I opened blockmethods.h in VS C++ I discovered a large number of Intellisense errors and strange parsing of the file. Both VS 2015 and 2012 give the same errors like:

- Block is not a template …
- Identifier Derived is undefined…
- More bizarre when I click on Block strange parts of 2 consecutive statements starting with typedef are highlighted.
- Also when I set a breakpoint I get: the breakpoint will not be hit …

Thank you for any help.
Brian
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
I'm not surprised that the IDE did not managed to properly parse the file because it cannot be parsed on its own, i.e., this file is included within other header fiels to provide the adequate context. However, this should not prevent you for defining breaking point. If so, then complain to MS.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]