jayurbain / mitlm

Automatically exported from code.google.com/p/mitlm
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

compilation error because an included file "unordered_map" is not found #37

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. configure
2. make
3.

What is the expected output? What do you see instead?
Expected Output: compilation with no errors.
Instead: I see "fatal error:  'tr1/unordered_map' file not found

What version of the product are you using? On what operating system?
Latest version (0.4.1), on Mac OSX 10.9.2

Please provide any additional information below.

Original issue reported on code.google.com by afsa...@whirlscape.com on 10 Apr 2014 at 4:33

GoogleCodeExporter commented 8 years ago
solved by removing the header "tr1" from the code.

Original comment by afsa...@whirlscape.com on 10 Apr 2014 at 4:58

GoogleCodeExporter commented 8 years ago
Did you replace <tr1/unordered_map> with <unordered_map>?

Original comment by giuliop...@gmail.com on 10 Apr 2014 at 5:30

GoogleCodeExporter commented 8 years ago
Yes.  Actually that's how I resolved this issue.

Original comment by afsa...@whirlscape.com on 10 Apr 2014 at 5:50

GoogleCodeExporter commented 8 years ago
This should be fixed in revision r106.
The complete solution requires to re-run the autogen.sh script. 
Autoconf-archive should also be present on the system.

Can you check if this solution works for you?

Bests,
Giulio.

Original comment by giuliop...@gmail.com on 3 Jun 2014 at 12:11

GoogleCodeExporter commented 8 years ago
Hello,

I encounter the same problem:

> src/util/CommandOptions.h:39:10: fatal error: 'tr1/unordered_map' file not 
found

Even if I remove all references to 'tr1' across several files 
(CommandOptions.h, RefCounter.h, RefCounter.cpp in src/util, plus Lattice.cpp 
in src) I then encounter a new error with src/util/FastIO.h: implicit 
instantiation of undefined template 'std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> >'

And if I run autogen.sh, and then make, I see an error "while processing 
Libtool library 'libmitlm.la'"

I'm on OS X 10.10.3, and have downloaded mitlm-0.4.1. Any help much appreciated.

cheers, Andrew

Original comment by caine...@gmail.com on 2 Jul 2015 at 11:09

GoogleCodeExporter commented 8 years ago
Can you provide the complete error that you see with autogen.sh + make?

Cheers,
Giulio.

Original comment by giuliop...@gmail.com on 2 Jul 2015 at 12:10

GoogleCodeExporter commented 8 years ago
Hi Giulio,
autogen.sh seems to run fine, ending with the comment: "Now type `make' to 
compile."
When I type `make', I see the following:
$ make
 cd . && automake-1.14 --foreign
automake-1.14: warnings are treated as errors
/opt/local/share/automake-1.14/am/ltlibrary.am: warning: 'libmitlm.la': linking 
libtool libraries using a non-POSIX
/opt/local/share/automake-1.14/am/ltlibrary.am: archiver requires 'AM_PROG_AR' 
in 'configure.ac'
Makefile.am:14:   while processing Libtool library 'libmitlm.la'
make: *** [Makefile.in] Error 1

Original comment by caine...@gmail.com on 2 Jul 2015 at 2:13

GoogleCodeExporter commented 8 years ago
Hello Giulio,
I wonder if you have any comment on my previous error message?
Many thanks!
Andrew

Original comment by caine...@gmail.com on 4 Aug 2015 at 12:21