Visual studio intellisense for headers without .h

后端 未结 2 372
难免孤独
难免孤独 2021-02-04 06:40

I am using a library that has headers without the .h
This defeats visual studio\'s intellisense (declaration/definition lookup)

Anyone know how to tell VS2008 that a

2条回答
  •  攒了一身酷
    2021-02-04 07:10

    I'd hazard a guess that you should ensure the headers are included from a source file (usually a .cpp file).

    Where the properties for the source file have the Tool property set to C/C++ Compiler Tool. I would guess Intellisense starts with them, and would follow #includes to files regardless of their extension to build its database of symbols from anything it encounters.

提交回复
热议问题