I'm getting a error, such as
1>src\CarDrivingAids.cpp(35): error C2220: warning treated as error - no 'object' file generated
1>src\CarDrivingAids.cpp(35): warning C4100: 'wheel' : unreferenced formal parameter
The problem is that, another class where I use the same approach with method writing, there's no errors and it works perfectly.
Here's my header:
#include "CarWheel.h"
class CarDrivingAids
{
public:
CarDrivingAids(void);
~CarDrivingAids(void);
void TractionControlSystem(CarWheel* wheel);
};
And cpp:
#include "CarDrivingAids.h"
CarDrivingAids::CarDrivingAids(void)
{
}
CarDrivingAids::~CarDrivingAids(void)
{
}
void CarDrivingAids::TractionControlSystem(CarWheel* wheel)
{
}
The error appears on TractionControlSystem method. Any sugestions on what I'm possibly doing wrong here? By the looks of it, it should be correct? I'm using msvc++2010 express.