I can not resolve "error: conflicting types for... "
Andrew Haley
aph@redhat.com
Sat Dec 22 11:13:00 GMT 2007
mahmoodn writes:
>
> Hello,:-)
> Why I get this confusing error:confused::
>
> VVc_demo.cpp: In function `bool read_polygons(const char*, Polygons_list_2&,
> Bbox_2&)':
> VVc_demo.cpp:617: error: conflicting types for `read_polygons(const char*,
> Polygons_list_2&, Bbox_2&)::domain ifile'
> VVc_demo.cpp:598: error: previous declaration as `std::ifstream ifile'
> VVc_demo.cpp:617: error: syntax error before `>>' token
> VVc_demo.cpp:629: error: no match for 'operator>>' in 'ifile >> n_vertices'
>
> the function that has problem is:
Please give us a stand-alone test case that shows the problem.
Andrew.
--
Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SL4 1TE, UK
Registered in England and Wales No. 3798903
More information about the Gcc-help
mailing list