Re: compile error on simple code , plz help

2011-05-13 Thread Ian Lance Taylor
"eric lin" writes: > eric@eric-laptop:~/practicalCpp$ g++ fixed_pt.cpp fixed_test.cpp > In file included from fixed_pt.cpp:3: > fixed_pt.h:211: error: ‘fixed_pt::fixed_pt > fixed_pt::fixed_pt::operator+(const fixed_pt::fixed_pt&, const > fixed_pt::fixed_pt&)’ must take either zero or one argume

compile error on simple code , plz help

2011-05-13 Thread eric lin
eric@eric-laptop:~/practicalCpp$ g++ fixed_pt.cpp fixed_test.cpp In file included from fixed_pt.cpp:3: fixed_pt.h:211: error: ‘fixed_pt::fixed_pt fixed_pt::fixed_pt::operator+(const fixed_pt::fixed_pt&, const fixed_pt::fixed_pt&)’ must take either zero or one argument fixed_pt.h:216: error: ‘fixe