here is what is displayed when I run my makefile in terminal:
make
g++ -ansi -Wall -g -c appointment.cpp
g++ -ansi -Wall -g -c calendar.cpp
g++ -ansi -Wall -g -c day.cpp
g++ -ansi -Wall -g -c time.cpp
g++ -ansi -Wall -g -c year.cpp
g++ -ansi -Wall -g -o calendar.out appointment.o calendar.o day.o time.o year.o
with the exact same code using build in xcode, I get this from the results:
Building target “calendar” of project “calendar” with configuration “Debug” — (90 errors)
cd /Users/kiem/Downloads/hw3/calendar
/Developer/usr/bin/gcc-4.0 -x c++ -arch i386 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -DGLIBCXXDEBUG=1 -DGLIBCXX_DEBUGPEDANTIC=1 -fmessage-length=0 -fvisibility-inlines-hidden -mfix-and-continue -mmacosx-version-min=10.5 -gdwarf-2 -I/Users/kiem/Downloads/hw3/calendar/build/calendar.build/Debug/calendar.build/calendar.hmap -F/Users/kiem/Downloads/hw3/calendar/build/Debug -I/Users/kiem/Downloads/hw3/calendar/build/Debug/include -I/Users/kiem/Downloads/hw3/calendar/build/calendar.build/Debug/calendar.build/DerivedSources -isysroot /Developer/SDKs/MacOSX10.5.sdk -c /Users/kiem/Downloads/hw3/calendar/calendar.cpp -o /Users/kiem/Downloads/hw3/calendar/build/calendar.build/Debug/calendar.build/Objects-normal/i386/calendar.o
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:66: error: '::clock_t' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:68: error: '::tm' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:70: error: '::clock' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:71: error: '::difftime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:72: error: '::mktime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:73: error: '::time' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:74: error: '::asctime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:75: error: '::ctime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:76: error: '::gmtime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:77: error: '::localtime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:78: error: '::strftime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc: In member function '_InIter std::timeget<CharT, InIter>::_M_extract_via_format(InIter, _InIter, std::ios_base&, std::IosIostate&, tm*, const _CharT*) const':
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1794: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1801: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1809: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1816: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1828: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1835: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1838: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1850: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1855: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1863: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1867: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1887: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1923: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1931: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc: In member function 'virtual _InIter std::timeget<CharT, InIter>::do_get_weekday(InIter, _InIter, std::ios_base&, std::IosIostate&, tm*) const':
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:2157: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc: In member function 'virtual _InIter std::timeget<CharT, InIter>::do_get_monthname(InIter, _InIter, std::ios_base&, std::IosIostate&, tm*) const':
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:2203: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc: In member function 'virtual _InIter std::timeget<CharT, InIter>::do_get_year(InIter, _InIter, std::ios_base&, std::IosIostate&, tm*) const':
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:2230: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:66: error: '::clock_t' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:68: error: '::tm' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:70: error: '::clock' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:71: error: '::difftime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:72: error: '::mktime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:73: error: '::time' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:74: error: '::asctime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:75: error: '::ctime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:76: error: '::gmtime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:77: error: '::localtime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:78: error: '::strftime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1794: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1801: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1809: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1816: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1828: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1835: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1838: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1850: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1855: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1863: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1867: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1887: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1923: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1931: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:2157: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:2203: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:2230: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
cd /Users/kiem/Downloads/hw3/calendar
/Developer/usr/bin/gcc-4.0 -x c++ -arch i386 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -DGLIBCXXDEBUG=1 -DGLIBCXX_DEBUGPEDANTIC=1 -fmessage-length=0 -fvisibility-inlines-hidden -mfix-and-continue -mmacosx-version-min=10.5 -gdwarf-2 -I/Users/kiem/Downloads/hw3/calendar/build/calendar.build/Debug/calendar.build/calendar.hmap -F/Users/kiem/Downloads/hw3/calendar/build/Debug -I/Users/kiem/Downloads/hw3/calendar/build/Debug/include -I/Users/kiem/Downloads/hw3/calendar/build/calendar.build/Debug/calendar.build/DerivedSources -isysroot /Developer/SDKs/MacOSX10.5.sdk -c /Users/kiem/Downloads/hw3/calendar/appointment.cpp -o /Users/kiem/Downloads/hw3/calendar/build/calendar.build/Debug/calendar.build/Objects-normal/i386/appointment.o
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:66: error: '::clock_t' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:68: error: '::tm' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:70: error: '::clock' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:71: error: '::difftime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:72: error: '::mktime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:73: error: '::time' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:74: error: '::asctime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:75: error: '::ctime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:76: error: '::gmtime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:77: error: '::localtime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:78: error: '::strftime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc: In member function '_InIter std::timeget<CharT, InIter>::_M_extract_via_format(InIter, _InIter, std::ios_base&, std::IosIostate&, tm*, const _CharT*) const':
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1794: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1801: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1809: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1816: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1828: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1835: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1838: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1850: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1855: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1863: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1867: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1887: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1923: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1931: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc: In member function 'virtual _InIter std::timeget<CharT, InIter>::do_get_weekday(InIter, _InIter, std::ios_base&, std::IosIostate&, tm*) const':
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:2157: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc: In member function 'virtual _InIter std::timeget<CharT, InIter>::do_get_monthname(InIter, _InIter, std::ios_base&, std::IosIostate&, tm*) const':
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:2203: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc: In member function 'virtual _InIter std::timeget<CharT, InIter>::do_get_year(InIter, _InIter, std::ios_base&, std::IosIostate&, tm*) const':
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:2230: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:66: error: '::clock_t' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:68: error: '::tm' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:70: error: '::clock' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:71: error: '::difftime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:72: error: '::mktime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:73: error: '::time' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:74: error: '::asctime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:75: error: '::ctime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:76: error: '::gmtime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:77: error: '::localtime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/ctime:78: error: '::strftime' has not been declared
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1794: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1801: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1809: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1816: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1828: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1835: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1838: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1850: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1855: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1863: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1867: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1887: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1923: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:1931: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:2157: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:2203: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/bits/locale_facets.tcc:2230: error: invalid use of undefined type 'struct tm'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/wchar.h:152: error: forward declaration of 'struct tm'
Build failed (90 errors)
for the #includes, here's an example of one of my header files:
#ifndef APPOINTMENT_H
#define APPOINTMENT_H
#include "time.h"
#include <cstring>
#include <iostream>
using namespace std;
class Appointment
{
public:
Appointment();
Appointment(Time s, Time e, char *sub, char *loc);
Appointment& operator=(Appointment& rhs)
{
start = rhs.start;
endt = rhs.endt;
subject = new char[strlen(rhs.subject)+1];
location = new char[strlen(rhs.location)+1];
strcpy(subject,rhs.subject);
strcpy(location,rhs.location);
return *this;
}
Time start, endt;
char *subject, *location;
void getAppt(char &str);
void addAppointment();
void editCsv(int &nmonth, int &nday, Appointment &nappt, char *amorpm[3]);
friend ostream& operator>>(ostream& outty, Time& t);
}; //class Appointment
#endif
the class I am in uses fedora computers and the program works fine there. I just want to be able to debug without having to ssh every time. also i can use a C command line tool without programs, if that helps.