jadooman / phonetisaurus

Automatically exported from code.google.com/p/phonetisaurus
0 stars 0 forks source link

Needed to add -std=gnu++0x to compile #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
'make' step following the instructions.

What is the expected output? What do you see instead?

I got this compilation error:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/c++0x_warni
ng.h:31:2: error: #error This file requires compiler and library support for 
the upcoming ISO C++ standard, C++0x. This support is currently experimental, 
and must be enabled with the -std=c++0x or -std=gnu++0x compiler options.

What version of the product are you using? On what operating system?
phonetisaurus-0.8
x86_64-redhat-linux
g++ (GCC) 4.4.7 20120313 (Red Hat 4.4.7-3)

Please provide any additional information below.
Modifying Makefile in this way fixed it (don't know if this is the logical 
place).
THIRD_PARTIES_INCLUDE ?= -I3rdparty/sparsehash -I3rdparty/utfcpp -std=gnu++0x

(Maybe the problem is due to the compiler version -- I didn't have the problem 
compiling on OS X, I believe using g++-mp-4.8.)

Original issue reported on code.google.com by MatsRo...@gmail.com on 2 Jun 2014 at 4:43

GoogleCodeExporter commented 9 years ago
ill check it out today.  looks like a compiler error - especially if you are 
using the source in the trunk (which I have still only compiled against mac.

Original comment by Josef.Ro...@gmail.com on 3 Jun 2014 at 7:23

GoogleCodeExporter commented 9 years ago

Original comment by Josef.Ro...@gmail.com on 4 Jun 2014 at 3:12

GoogleCodeExporter commented 9 years ago
I updated the download to incorporate this fix.  I also fixed another bug 
related to the Maximum-Entropy example to accommodate usage syntax changes in 
srilm v1.7.1.

Original comment by Josef.Ro...@gmail.com on 18 Jun 2014 at 9:04