In your header, you declare two functions in the RabQavSystem
namespace:
namespace RabQavSystem {
int dateTimeToMinutes(DateTime datetime);
int dateTimeDifference(DateTime datetime1, DateTime datetime2);
}
In your source file, you declare and define new functions in the global namespace; these are not definitions of the functions declared in the header, but of different functions in a different namespace:
int dateTimeDifference(DateTime datetime1, DateTime datetime2) {
// ....
}
int dateTimeToMinutes(DateTime datetime) {
// ....
}
Then using namespace RabQavSystem;
pulls the other function names into the global namespace, causing the ambiguity.
To fix it, you want to define the functions in your namespace, not the global namespace:
int RabQavSystem::dateTimeDifference(DateTime datetime1, DateTime datetime2) {
^^^^^^^^^^^^^^
}
int RabQavSystem::dateTimeToMinutes(DateTime datetime) {
^^^^^^^^^^^^^^
}