error: 'round' is not a member of 'std' Looks like that particular version with those particular flags doesn't have round in the standard library? Taking a wild guess, maybe -ansi? -std=gnu++11? Or (my preference :) forget the whole thing ... -k