I am working on a C++ project written in Embarcadero C++Builder (as it has legacy support for Delphi components).
As far as I know, there aren't any other IDEs that can build these types of projects, but the editor is just horrible there, so I want to write code using VSCode (and build using the regular IDE).
I've managed to get the right include paths working, so that there are no include errors shown for now.
Currently, I'm dealing with an error where it doesn't recognize the __fastcall
calling convention, simply calling it an "incomplete type".
Yes, I know I won't get a perfect developing experience, but are there any workarounds to configure VSCode to avoid errors such as this?
c_cpp_properties.json
. There is some documentation here: https://code.visualstudio.com/docs/cpp/config-mingw#_cc-configurations – drescherjm Dec 4 '20 at 23:01__fastcall
keyword/convention. But, I suppose, if yours doesn't, then you could #define it somewhere (to be nothing), if you're not going to actual use the system to build your final product. – Adrian Mole Dec 4 '20 at 23:02__fastcall
keyword/convention" - Embarcadero inherited the old Borland C++ compilers, and then added their own CLang-based compilers. Borland's flavor of__fastcall
(which is what Delphi uses) is different than Microsoft's flavor (MS's flavor is__msfastcall
in Borland/Embarcadero's compilers). No 3rd party compiler implements Borland's flavor of__fastcall
, AFAIK. – Remy Lebeau Dec 4 '20 at 23:46