/usr/include/c++/4.2/ext/new_allocator.h: In member function ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Tp*, const _Tp&) [with _Tp = mEvent]’:
h:107: error: no matching function for call to ‘mEvent::mEvent(const mEvent&)’
../src/../h/../h/mEvent.h:24: note: candidates are: mEvent::mEvent(mEvent&)
../src/../h/../h/mEvent.h:23: note: mEvent:
/usr/include/c++/4.2/bits/stl_uninitialized.h:254: instantiated from ‘_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp>) [with _InputIterator = mEvent*, _ForwardIterator = mEvent*, _Tp = mEvent]’
where mEvent is a class written in mEvent.h an mEvent.cpp.
I've built it using eclipse on linux.
mEvent constructors look like this:
mEvent(); mEvent(std::string type, Poco::DateTime date, int id, eEnergy _energy, int num, double price); mEvent(mEvent &other);the problem is the eclipse IDE doesn't show these problems on the code itself, but only on the console tab. So I'm guessing this isn't a code specific problem.
It showed up after I've wrote a lot of code using the same elements (iterators and Poco utilities), and these new problems showed up after writing a block of code which doesn't even relate to mEvent.
I've also gotten similar errors while trying to compile a method which uses Poco::DateTimeParser, which I copied from code given to me by someone else, said code compiles just fine under the same project (meaning it can't be a problem with the properties, I guess).
help would be appreciated, even though I know this is all sort of vague...
Edited by Jaan, 13 December 2009 - 12:01 PM.
Please use code tags when you are posting your codes!


Sign In
Create Account

Back to top









