Xiaojun, Thanks for this bug report; sorry it took so long to address. This problem was because an element that you were not using defined "min" using a macro in its header file. The currently checked in sources should not have this problem.
Eddie Xiaojun Feng wrote: > Hi all, > > I have a question about using fstream with Click. > > Can click go together with fstream? > > When I try to include <fstream> in my program, sometimes it will cause a > complile error, such as : > > In file included from /usr/include/c++/4.2/bits/char_traits.h:46, > from /usr/include/c++/4.2/ios:45, > from /usr/include/c++/4.2/istream:44, > from /usr/include/c++/4.2/fstream:45, > from > ../elements/local/./H264Packetizer/PacketReceiver.hh:6, > from ../elements/local/packetrcv.hh:7, > from ../elements/local/more.hh:14, > from elements.cc:88: > /usr/include/c++/4.2/bits/stl_algobase.h:226:56: error: macro "min" passed 3 > arguments, but takes just 2 > /usr/include/c++/4.2/bits/stl_algobase.h:246:56: error: macro "max" passed 3 > arguments, but takes just 2 > > and many more list that. > > Do you know how to fix that or do I have to try not to use fstream in the > program? > > Thanks very much! > _______________________________________________ click mailing list [email protected] https://amsterdam.lcs.mit.edu/mailman/listinfo/click
