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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux