This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: I can not resolve "error: conflicting types for... "
- From: Andrew Haley <aph at redhat dot com>
- To: mahmoodn <nt_mahmood at yahoo dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sat, 22 Dec 2007 11:13:20 +0000
- Subject: Re: I can not resolve "error: conflicting types for... "
- References: <14467214.post@talk.nabble.com>
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