[Linker error] undefined reference to wxEntry(...)

325 views
Skip to first unread message

vovor

unread,
Jun 6, 2004, 9:23:30 AM6/6/04
to wx-u...@lists.wxwidgets.org

Dev-C++ 4.9.8.9
MingW 3.3.1
wxWidgets 2.5.1

Hi !

I just updated wx to 2.5.1 using the DevPak made by upCASE
(http://www.upcase.de/devpack.html).
I also updated MingW to 3.3.1.

Now, when I try to compile my current application (which compiled without
any error under wx 2.4.2), I get this error:

Application/Core/AppCore.o(.text+0x18a):AppCore.cpp: undefined reference to
`Application::wxEntry(HINSTANCE__*, HINSTANCE__*, char*, int)'

I changed nothing to the source code. I have been searching the whole web
for a solution since yesterday but found none which works.
I posted there too :
http://g.yi.org/forum/read.php?13,4080
This posting contains more informations than this one.
It seems that wxEntry, which I don't call at all, is called by
IMPLEMENT_APP() that I call once in Application.cpp, in the namespace
"Application::" so, don't mind about "Application::".

If you need more details, ask!

Thank you in advance,
vovor

P.S.: I have already tried to uninstall/reinstall the DevPak.

vovor

unread,
Jun 6, 2004, 12:42:16 PM6/6/04
to wx-u...@lists.wxwidgets.org

Hi again!

Problem solved calling IMPLEMENT_APP(Application::Core) before namespace
Application { /* ... */ };
instead of

namespace Application {
IMPLEMENT_APP(Core)
};

Thanks anyway,
vovor

Reply all
Reply to author
Forward
0 new messages