Author Topic: Linux Build failure [ resolved ]  (Read 4995 times)

Offline me22

  • Official tester
  • Multiple posting newcomer
  • ***
  • Posts: 53
    • TA Universe
Linux Build failure [ resolved ]
« on: December 09, 2005, 03:09:32 am »
i686-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I. -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA -I../../src/sdk/wxscintilla/include -I../../src/sdk/tinyxml -I../../src/sdk/as/include -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA -O3 -march=athlon-xp -pipe -fomit-frame-pointer -O2 -ffast-math -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -c macrosmanager.cpp  -fPIC -DPIC -o .libs/macrosmanager.o
macrosmanager.cpp: In member function `void MacrosManager::ReplaceMacros(wxString&, bool)':
macrosmanager.cpp:256: error: no matching function for call to `wxDateTime::Format(const char[7])'
/usr/include/wx-2.6/wx/datetime.h:1018: note: candidates are: wxString wxDateTime::Format(const wxChar*, const wxDateTime::TimeZone&) const
macrosmanager.cpp:258: error: no matching function for call to `wxDateTime::Format(const char[9])'
/usr/include/wx-2.6/wx/datetime.h:1018: note: candidates are: wxString wxDateTime::Format(const wxChar*, const wxDateTime::TimeZone&) const
macrosmanager.cpp:260: error: no matching function for call to `wxDateTime::Format(const char[15])'
/usr/include/wx-2.6/wx/datetime.h:1018: note: candidates are: wxString wxDateTime::Format(const wxChar*, const wxDateTime::TimeZone&) const
macrosmanager.cpp:262: error: no matching function for call to `wxDateTime::Format(const char[18])'
/usr/include/wx-2.6/wx/datetime.h:1018: note: candidates are: wxString wxDateTime::Format(const wxChar*, const wxDateTime::TimeZone&) const
macrosmanager.cpp:264: error: no matching function for call to `wxDateTime::Format(const char[3])'
/usr/include/wx-2.6/wx/datetime.h:1018: note: candidates are: wxString wxDateTime::Format(const wxChar*, const wxDateTime::TimeZone&) const
macrosmanager.cpp:266: error: no matching function for call to `wxDateTime::Format(const char[7])'
/usr/include/wx-2.6/wx/datetime.h:1018: note: candidates are: wxString wxDateTime::Format(const wxChar*, const wxDateTime::TimeZone&) const
macrosmanager.cpp:268: error: no matching function for call to `wxDateTime::Format(const char[9])'
/usr/include/wx-2.6/wx/datetime.h:1018: note: candidates are: wxString wxDateTime::Format(const wxChar*, const wxDateTime::TimeZone&) const
macrosmanager.cpp:270: error: no matching function for call to `wxDateTime::Format(const char[15])'
/usr/include/wx-2.6/wx/datetime.h:1018: note: candidates are: wxString wxDateTime::Format(const wxChar*, const wxDateTime::TimeZone&) const
macrosmanager.cpp:272: error: no matching function for call to `wxDateTime::Format(const char[18])'
/usr/include/wx-2.6/wx/datetime.h:1018: note: candidates are: wxString wxDateTime::Format(const wxChar*, const wxDateTime::TimeZone&) const
macrosmanager.cpp:274: error: no matching function for call to `wxDateTime::Format(const char[3])'
/usr/include/wx-2.6/wx/datetime.h:1018: note: candidates are: wxString wxDateTime::Format(const wxChar*, const wxDateTime::TimeZone&) const

Someone forgot to _T(wrap) again :P

Here's the section, corrected:

            if (env.StartsWith(_T("#")))
                replace = UnixFilename(Manager::Get()->GetUserVariableManager()->Replace(env));
            else if (env.Matches(_T("ACTIVE_EDITOR_FILENAME")))
                replace = m_ActiveEditorFilename;
            else if (env.Matches(_T("TARGET_OUTPUT_DIR")))
                replace = m_TargetOutputDir;
            else if (env.Matches(_T("TARGET_NAME")))
                replace = m_TargetName;
            else if (env.Matches(_T("TDAY")))
                replace = wxDateTime::Now().Format(_T("%Y%m%d"));
            else if (env.Matches(_T("TODAY")))
                replace = wxDateTime::Now().Format(_T("%Y-%m-%d"));
            else if (env.Matches(_T("NOW")))
                replace = wxDateTime::Now().Format(_T("%Y-%m-%d-%H.%M"));
            else if (env.Matches(_T("NOW_L")))
                replace = wxDateTime::Now().Format(_T("%Y-%m-%d-%H.%M.%S"));
            else if (env.Matches(_T("WEEKDAY")))
                replace = wxDateTime::Now().Format(_T("%A"));
            else if (env.Matches(_T("TDAY_UTC")))
                replace = wxDateTime::Now().ToGMT().Format(_T("%Y%m%d"));
            else if (env.Matches(_T("TODAY_UTC")))
                replace = wxDateTime::Now().ToGMT().Format(_T("%Y-%m-%d"));
            else if (env.Matches(_T("NOW_UTC")))
                replace = wxDateTime::Now().ToGMT().Format(_T("%Y-%m-%d-%H.%M"));
            else if (env.Matches(_T("NOW_L_UTC")))
                replace = wxDateTime::Now().ToGMT().Format(_T("%Y-%m-%d-%H.%M.%S"));
            else if (env.Matches(_T("WEEKDAY_UTC")))
                replace = wxDateTime::Now().ToGMT().Format(_T("%A"));
         else if (env.Matches(_T("LANGUAGE")))
                replace = wxLocale::GetLanguageName(wxLocale::GetSystemLanguage());
         else if (env.Matches(_T("ENCODING")))
                replace = wxLocale::GetSystemEncodingName();
            else
            {
                for (size_t i = 0; i < m_ProjectKeys.Count(); i++)
                {
                    if (env.Matches(m_ProjectKeys))
                    {
                        replace = m_ProjectValues;
                        break;
                    }
                }
            }


Oh, and sorry mandrav, I was about to blame you for this, but it looks like it wasn't you this time.

* me22 resolves to bother thomasdenk about the unicode fixes for the next little while
« Last Edit: December 10, 2005, 07:58:27 pm by me22 »