-std=c++0x compiler flag gives lots of errors

Help
Marc D
2012-07-07
2014-01-21
  • Marc D
    Marc D
    2012-07-07

    ..\..\Win32++\include/cstring.h: In member function 'int Win32xx::CString::CollateNoCase(LPCTSTR) const':
    ..\..\Win32++\include/cstring.h:347:42: error: '_stricoll' was not declared in this scope
    ..\..\Win32++\include/cstring.h: In member function 'int Win32xx::CString::CompareNoCase(LPCTSTR) const':
    ..\..\Win32++\include/cstring.h:362:40: error: '_stricmp' was not declared in this scope
    ..\..\Win32++\include/tab.h: In member function 'virtual BOOL Win32xx::CTabbedMDI::LoadRegistrySettings(Win32xx::CString)':
    ..\..\Win32++\include/tab.h:1473:39: error: '_itoa' was not declared in this scope
    ..\..\Win32++\include/tab.h: In member function 'virtual BOOL Win32xx::CTabbedMDI::SaveRegistrySettings(Win32xx::CString)':
    ..\..\Win32++\include/tab.h:1601:40: error: '_itoa' was not declared in this scope
    ..\..\Win32++\include/docking.h: In member function 'virtual BOOL Win32xx::CDocker::LoadRegistrySettings(LPCTSTR)':
    ..\..\Win32++\include/docking.h:2396:39: error: '_itoa' was not declared in this scope
    ..\..\Win32++\include/docking.h: In member function 'virtual BOOL Win32xx::CDocker::SaveRegistrySettings(LPCTSTR)':
    ..\..\Win32++\include/docking.h:3218:45: error: '_itoa' was not declared in this scope
    ..\..\Win32++\include/docking.h:3233:43: error: '_itoa' was not declared in this scope
    ..\..\Win32++\include/file.h: In member function 'Win32xx::CString Win32xx::CFile::OpenFileDialog(LPCTSTR, DWORD, LPCTSTR, Win32xx::CWnd*)':
    ..\..\Win32++\include/file.h:246:18: error: '_MAX_PATH' was not declared in this scope
    ..\..\Win32++\include/file.h: In member function 'Win32xx::CString Win32xx::CFile::SaveFileDialog(LPCTSTR, DWORD, LPCTSTR, LPCTSTR, Win32xx::CWnd*)':
    ..\..\Win32++\include/file.h:304:18: error: '_MAX_PATH' was not declared in this scope

    Im using CodeBlocks with MingW

     
  • David
    David
    2014-01-21

    Hi Marc,

    Those errors indicate you are missing some header files. _MAX_PATH is defined in stdlib.h for example.

    Each sample comes with a project file for CodeBlocks. Using those, the samples can be compiled with the MingW compiler that ships with CodeBlocks without errors.

    Best regards,
    David