alexlin88 / sofia-ml

clone from code.google.com/p/sofia-ml
0 stars 0 forks source link

Various errors in source code #15

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
There is a problem with the source code. Many files forget to include standard 
libraries, and some of the assertions in the Unit tests fail.

What steps will reproduce the problem?
1. Follow the instructions on https://code.google.com/p/sofia-ml/
2. Run make all_test in src/

What is the expected output? What do you see instead?
I see lots of compile time errors.

What version of the product are you using? On what operating system?
Ubuntu 14.04, G++ 4.7, sofia-ml

Please provide any additional information below.
The following updates fixed everything for me:
sf-sparse-vector_test.cc
l27   //assert(x1.GetGroupId() == "2");
l75   //assert(x6.GetGroupId() == "3");

simple-cmd-line-helper.h
l68 #include <cstdlib>
l69 #include <stdio.h>

sofia-ml-methods_test.cc
l19 #include <cstdlib>

Original issue reported on code.google.com by hol...@it-caesar.de on 16 Jul 2014 at 4:55