2019-01-05 03:28 AM
file-> new-> convert C/C++ nature then build it gives error main.h no such fie or directory
Solved! Go to Solution.
2019-01-07 05:49 AM
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.
2019-01-05 11:47 PM
Generally speaking, when a file exist and it can't be found by the compiler or tool means the search path in the project setting is incomplete. Most of the time, the location of the project file is the default "." current directory,
2019-01-06 06:46 AM
as per your answer after converting in code to C++ in file path i need to change
main.c to main.cpp
location of my project file is default
2019-01-07 05:49 AM
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.
2019-01-09 07:27 PM
Thanks Markus for your support..
i had include all symbols and includes as you said above but still true studio not finding some header files ,files already present in directory i'm using software v9.0.0 hope it is fixed in v9.2.0