[Click] compile error with fstream
Xiaojun Feng
fightfxj at gmail.com
Sat Mar 28 09:27:09 EDT 2009
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!
--
Xiaojun Feng
More information about the click
mailing list