I wrote a code thay contain a part like below :
struct Point
{
double x;
double y;
void print();
};
and when I compiled it another file came out. the name of that file isstl_iterator_base_funcs.h
,
it has something like these:
#ifndef _STL_ITERATOR_BASE_FUNCS_H
#define _STL_ITERATOR_BASE_FUNCS_H 1
#pragma GCC system_header
#include <bits/concept_check.h>
#include <debug/debug.h>
namespace std _GLIBCXX_VISIBILITY(default)
and it told me there were errors in that code, one is like[Note] 'template<class _InputIterator, class _Distance> void std::__advance(_InputIterator&, _Distance, int)' previously declared here
I use Dev-C++ 5.11, before I compiled the code I write struct
within, there were no problems to compile and conduct the program. this is the first time I writestruct
, so I am not sure if it’s this causes the problem.
Bevis000 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.