no matching function

Cameron Edwards cameron@student.unsw.edu.au
Sat Nov 4 22:54:00 GMT 2000


Hi,

I have Cygwin 1.1.2 and im trying to compile a C++ wxWindows progrma i
wrote (it currently compiles fine in Linux).

I'm calling a function MainState::GetTimeFormat() but the compiler
complains that it can't find MainState::GetTimeFormatA() (yes there is
an extra 'A' character appended on the end). It also  happens for the
wxPaintDC::DrawText() function.

See output at bottom of this email.


Why is it putting that A character there????? Why wont it compile (it
compiles fine in Linux)??

Any help or suggestions would be greatly appreciated.

Thanks,

Cameron


############
PositionBar.C: In method `void PositionBar::SetCursorAndValue(long
unsigned int, char *)':
PositionBar.C:88: no matching function for call to
`MainState::GetTimeFormatA ()'
PositionBar.C:92: no matching function for call to
`MainState::GetTimeFormatA ()'
PositionBar.C: In method `void PositionBar::UpdateRegion()':
PositionBar.C:136: no matching function for call to
`MainState::GetTimeFormatA ()'
PositionBar.C:141: no matching function for call to
`MainState::GetTimeFormatA ()'
PositionBar.C: In method `void PositionBar::onPaint(wxPaintEvent &)':
PositionBar.C:191: no matching function for call to
`wxPaintDC::DrawTextA (const char[7], int &, int)'
PositionBar.C:192: no matching function for call to
`wxPaintDC::DrawTextA (const char[6], int &, int)'
PositionBar.C:193: no matching function for call to
`wxPaintDC::DrawTextA (const char[13], int &, int)'
PositionBar.C:194: no matching function for call to
`wxPaintDC::DrawTextA (const char[11], int &, int)'
make: *** [PositionBar.o] Error 1

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list