Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
VTK
VTK
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 582
    • Issues 582
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 161
    • Merge Requests 161
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VTK
  • VTKVTK
  • Issues
  • #17750

Closed
Open
Opened Dec 12, 2019 by Julien Schueller@jschuellerContributor

vtkXMLFileOutputWindow.cxx:36:87: error: no matching function for call to ‘std::basic_ofstream<char>::basic_ofstream...

!6122 (merged) is breaking compilation with MinGW because GCC's ofstream does not have a wstring ctor:

#ifdef _WIN32
      this->OStream =
        new ofstream(vtksys::Encoding::ToWindowsExtendedPath(this->FileName), ios::app);
#else
      this->OStream = new ofstream(this->FileName, ios::app);
#endif

I suspect these code paths are for MSVC only: if I replace _WIN32 with _MSC_VER in it goes fine, could you fix it @todoooo ?

see also http://www.cplusplus.com/reference/fstream/ofstream/ofstream/

Edited Dec 12, 2019 by Julien Schueller
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: vtk/vtk#17750