popucui / bsmap

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

solution to MAKE errors on ubuntu system #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The errors are described in previous two posts, including errors on
function atoi(), reverse(), exit().

The weird thing is these errors are only on Ubuntu. The installation went
smoothly on Mac, CentOS, Fedora.

Solution 1:
Whenever you see an error, go to the the corresponding source file and add
the following statements in the "#include" section. 

These statements are:
#include<stdio.h>
#include<stdlib.h>
#include<algorithm>

Or, to save some time on editing files, you may use solution 2:
create a file that contains these three sentences, and include this file in
every file which has an error. 

Original issue reported on code.google.com by sunnyt...@gmail.com on 5 Mar 2010 at 5:42

GoogleCodeExporter commented 8 years ago
Thanks! This helped. The problem occurs with the newer versions of the compiler 
GCC 4.3.2, 4.4.3, and 4.4.5. These are on all newer Ubuntu and Debian operating 
systems.

Original comment by alevc...@gmail.com on 21 Jan 2011 at 9:23