beltoforion / muparserx

A C++ Library for Parsing Expressions with Strings, Complex Numbers, Vectors, Matrices and more.
http://beltoforion.de/en/muparserx
BSD 2-Clause "Simplified" License
135 stars 60 forks source link

COMP: compilation error due to BOM marker #76

Closed grizonnetm closed 7 years ago

grizonnetm commented 7 years ago

muparserx is used in the ORFEO ToolBox image processing library (OTB) and compile from source in the Superbuild.

With a RedHat 5.10 and gcc 4.1.2, one user encounters a compilation error due to BOM marker into a file from MuParserX.

A file command on the file provide the following status: mpParserMessageProvider.cpp: UTF-8 Unicode (with BOM) C program text, with CRLF line terminators After remove the BOM marker, the same command provides: mpParserMessageProvider.cpp: UTF-8 Unicode C program text, with CRLF line terminators

Without the BOM marker gcc build the file. No other file provide this BOM marker.

This bug was reported in OTB Mantis bug tracker:

https://bugs.orfeo-toolbox.org/view.php?id=1048

martinrotter commented 7 years ago

Fine change. :) Real trouble is that on some GCC versions, even previous commits seem to work.