This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: I can not resolve "error: conflicting types for... "


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]