ECarlaServerResponse FVehicleActor::SetClientTest(int8_t Test)
{
if (!IsDormant()) {
auto Vehicle = Cast<ACarlaWheeledVehicle>(GetActor());
if (Vehicle == nullptr) {
return ECarlaServerResponse::NotAVehicle;
}
Vehicle->SetClientTest(Test);
}
return ECarlaServerResponse::Success;
}
I have created several methods in the same way, and all of them work fine. However, adding this new method results in a build error, regardless of whether it is a getter or setter method or what the return types are.
I have spent a lot of time debugging and still cannot find the error.
I added the new code in my code files and marked them with ///New Code. Additionally, I have attached a picture and the output log from my build system
Could it be possible that the number of methods used is limited? No matter which method I add, I encounter the mentioned compilation error. However, if I delete some of my previously created functions, it works.
Build Error in CARLA when Adding SetClientTest Method CARLA Version: 0.9.12 Platform/OS: Windows 10
Problem Description: I get a build error when I add even a minimal implementation for ECarlaServerResponse FVehicleActor::SetClientTest(int8_t Test).
Expected Behavior: The build should complete without errors.
Steps to Reproduce: Add the following in CarlaActor.h:
Add the following in CarlaActor.cpp:
I have created several methods in the same way, and all of them work fine. However, adding this new method results in a build error, regardless of whether it is a getter or setter method or what the return types are.
I have spent a lot of time debugging and still cannot find the error.
I added the new code in my code files and marked them with
///New Code
. Additionally, I have attached a picture and the output log from my build system