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

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

 



I did not what was the problem exactly, but I change 
   std::ofstream         ofile ("domain.txt", 'w');
to:
  std::ofstream  	ofile;
  ofile.open( "domain.txt");

and it compiled correctly. 

it is strange:confused: but got solved:jumping:



Andrew Haley wrote:
> 
> 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
> 
> 

-- 
View this message in context: http://www.nabble.com/I-can-not-resolve-%22error%3A-conflicting-types-for...-%22-tp14467214p14476588.html
Sent from the gcc - Help mailing list archive at Nabble.com.


[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