0

I try to understand the work from existing project from David Silver, http://www0.cs.ucl.ac.uk/staff/d.silver/web/Applications.html. I try to understand his code that he works on POMCP. However, when I try to import that project into Eclipse, I encounter the following problem.

Enter image description here

Enter image description here

I suspect this problem is related to character encoding problem with the file .pocman.cpp and other .*.cpp files. I try to open those files with Notepad on the Windows OS. Notepad cannot read any of those files, but Notepad++ or Sublime Text can read them properly. I try to work with some of existing solutions for this special character problem, but I have not successfully done so.

I already have the Boost library and MinGW installed.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
MakaraPr
  • 73
  • 1
  • 8
  • You can choose the encoding used for a file. Check under Help->Workspace Settings. Don't remember exactly what it was. – πάντα ῥεῖ Aug 28 '16 at 11:49
  • 2
    Note the prefix of the file name `._`. On POSIX systems (like Linux and macOS) files beginning with a dot is considered *hidden* files. That together with the underscore (which is usually is not used in the beginning of file names) makes me believe that you are not supposed to include that file in the project. – Some programmer dude Aug 28 '16 at 11:50
  • Did you mean from property->resource? I already change that on to UTF-8. But there is no workspace under help tab. – MakaraPr Aug 28 '16 at 11:53
  • .. or, indeed, *any* file inside a folder called `.MAC OS X`. – Jongware Aug 28 '16 at 11:54
  • 2
    Xcode on Mac will create those files when you edit the corresponding source file. A change log I think. Skip those when compiling. – Bo Persson Aug 28 '16 at 11:56
  • You might want to read this about ._ files http://apple.stackexchange.com/questions/14980/why-are-dot-underscore-files-created-and-how-can-i-avoid-them – SCFrench Aug 28 '16 at 12:36
  • @BoPersson: it mist definitely is **not** part of "XCode on Mac" (an oxymoron, or is there an 'XCode on Windows' as well?). It is an integrated part of the entire Macintosh OS X file system, meant to store file metadata for non-Posix compatible data. – Jongware Sep 03 '16 at 18:34
  • The link is effectively broken (it redirects to a generic page). – Peter Mortensen May 20 '23 at 11:39
  • [UTF-16](https://en.wikipedia.org/wiki/UTF-16) encoded? What is the canonical question for that? Similar: *[How should I use g++'s -finput-charset compiler option correctly in order to compile a non-UTF-8 source file?](https://stackoverflow.com/questions/10345802/)*. Related: *[Compilation error: stray ‘\302’ in program, etc.](https://stackoverflow.com/questions/19198332/)* – Peter Mortensen May 20 '23 at 11:41

0 Answers0