komp0t

Results 5 comments of komp0t

Similar problem as the author. ![image](https://github.com/microsoft/vscode-cpptools/assets/18011455/7732eb3e-f78c-482c-ad15-e32775b15446) Linked here ![image](https://github.com/microsoft/vscode-cpptools/assets/18011455/aaafae8b-dfbf-4270-9151-32857a2e6440) Define in c_cpp_properties.json: `"__prog__="` not working Help, I tried everything

That's right. I've seen a lot of replies on this topic. ![image](https://github.com/microsoft/vscode-cpptools/assets/18011455/c4dcb930-a596-4d3f-b9fa-b6b3e4539061)

Thanks, I think I understand what's going on. Do you know how to specify __prog__ and other definitions without overriding them? Using compileCommands from CMake build system.

When using only compileCommands, the problem remains. ![image](https://github.com/microsoft/vscode-cpptools/assets/18011455/26609af9-c623-476b-9df5-cfcf15e1ab36) ![image](https://github.com/microsoft/vscode-cpptools/assets/18011455/dbfb936b-517c-4e95-a978-26caadb084fb) If I use configurationProvider all definitions are reset. #include continue to work ![image](https://github.com/microsoft/vscode-cpptools/assets/18011455/ef7ab355-4f41-4be0-af74-80deaea54c3c) ![image](https://github.com/microsoft/vscode-cpptools/assets/18011455/0bfaa570-d054-4491-914d-359e42e9732b)

I solved the problem as follows. #### c_cpp_properties.json "mergeConfigurations": true, "defines": ["__prog__="], "configurationProvider": "ms-vscode.cmake-tools" it is also necessary to reset the default paths so that there are no conflicts ####...