In the small program I am writing, I have two static libraries:
1. tools. In this library, I have a Date and a Time class. In both these classes, the default constructor takes the system date/time. Date and Time classes are in a "tools" namespace.
2. source. This library contains the source files for my program. There is a Note class for writing notes with information such as time and date.
Both the Time and Date classes have been thoroughly tested and work fine. Now when I try to create a note object from this constructor:
../Note.cpp: In constructor ‘tpro::Note::Note(const string&, const string&)’:
../Note.cpp:25:19: error: no match for call to ‘(tools::Date) (tools::Date&)’
m_date(systemDate);
^
../Note.cpp:26:19: error: no match for call to ‘(tools::Time) (tools::Time&)’
m_time(systemTime);
It seems to me everything is there and defined.
P.S. I am working on Linux and Eclipse CDT and both static libraries have been linked properly to my executable project...
protected:
std::string m_title; /**< The note title */
std::string m_body; /**< The note content */
tools::Date m_date; /**< The date at which the note was recorded. */
tools::Time m_time; /**< The time at which the note was recorded */