Searching for include error

Bryan Kelly 521 Reputation points
2022-11-18T00:34:51.08+00:00

Windows 11, Visual Studio 2019, C++
I am trying to get a console project to run the code for RIPEMD-160. It was found via github but has a huge number of includes. One of them chokes on this line:

typedef __int64_t	__blkcnt_t;	/* blocks allocated for file */  

to get a console Copied it to a new console app and discovered that in the new file it does not like the leading underscores before __int64_t. Problem is, there are many of them.
Question 1
Is there some way to make the leading underscore palatable to VS?
Do I need to add my own set of files with things like

typedef int64_t     __int64t  

Question 2
Can VS be encouraged to chase down every include to look for something?
I wanted to do a search to find what file includes this so did a search for _types.h.
In working this project I have created several new directories and added multiple include files for this Linux looking project. They are in

E:\WX\LINUX_INCLUDES

They are not in the project directory but in my project item, go here: click Project -> Properties ->Additional Include Directories, I added those needed directories.

When I do ctl-F, edit in _types.h, I want every include file to be searched. Instead, VS stops searching once it exhausts the files in the local directory.

Thank you for your time and patience.

Developer technologies | C++
Developer technologies | C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Minxin Yu 13,506 Reputation points Microsoft External Staff
    2022-11-18T03:07:34.77+00:00

    Hi, @Bryan Kelly
    Question 1:
    You can combine the snippet:

    typedef int64_t      __int64_t;  
    typedef  __int64_t  __blkcnt_t;  
    

    Question 2:

    CTRL-F->Click the inverted triangle->Find in files.
    Click the three dots to search the specified directory.

    261679-image.png

    261630-image.png
    Best regards,

    Minxin Yu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Bryan Kelly 521 Reputation points
    2022-11-18T05:03:55.347+00:00

    Re the 1st question: that provides the basic answer. But there is a long list. This is from gethub. I think the best route is one of two choices
    A is this really needed in the small section I am using
    B Create a new include file of that long list and add it somewhere.

    Re the 2nd question

    WONDERFUL!!!!! I did not know to do that. You have saved me much time.

    Thank you.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.