How to convert C code to C++ in True Studio?
file-> new-> convert C/C++ nature then build it gives error main.h no such fie or directory
file-> new-> convert C/C++ nature then build it gives error main.h no such fie or directory
There's a risk that you get a lot of errors after converting a project to c++. The first is, as you mentioned, that you need a main.cpp file. Also, I gave this explanation in another thread:
Includes and Symbols are not copied from C to C++ compiler automatically, it will require manual work.
Easiest way of doing this is by going here:
C/C++ Build > Settings > Tool Settings > C Compiler > Symbols.
Copy all lines to the corresponding C++ Compiler > Symbols.
Do the same batch copy for the Include paths.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.