On Tue, May 28, 2002 at 10:08:13AM +0200, Lars Gullik Bjønnes wrote: > > | cxx: Error: formulabase.C, line 367: identifier "abs" is undefined > | if (abs(x - first_x) < 2 && abs(y - first_y) < 2) { > | ------------^ > > I belive that abs as a macro is not allowed in C++.
Indeed. > Also it might be that you compiler (correctly) puts abs in namespace > std. Try changing the abs(...) to std::abs(...) The 'using std::abs; ' is missing. > > | cxx: Warning: formulabase.C, line 826: unrecognized preprocessing directive > | #warning pretty ugly > | -^ > > and this... but these are only warnings should should not matter for > the real compile. THey _are_ guarded by #ifdef WITH_WARNINGS Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson)