When I ran file1.cpp
, it worked perfect. But now, I want to run test1.cpp
, but it's not working. There is no option to run the second .cpp
file.
How can I run test1.cpp
in RAD Studio?
When I ran file1.cpp
, it worked perfect. But now, I want to run test1.cpp
, but it's not working. There is no option to run the second .cpp
file.
How can I run test1.cpp
in RAD Studio?
It is clear from your screenshot that test1.cpp
is not part of the currently loaded Project1
project. Only File1.cpp
is. You can't just run a standalone .cpp
file from the IDE. You have to add the .cpp
file to a project first (in your case, simply right-click on Project1.exe
in the Project Manager, choose "Add", and select test1.cpp
), and then you can compile the project into a runnable executable (provided the code is valid, that is).