PDA

View Full Version : Unclear Error Message at Release!!!



undercover
15th February 2009, 19:15
Hello guys,

I programmed a little tool to compare somthings... It worked first time clearly, now i get the following error message if i want to make a release:


1>------ Build started: Project: Tool, Configuration: Release Win32 ------
1>Linking...
1>tool.obj : error LNK2019: unresolved external symbol "public: static struct QMetaObject const Tool::staticMetaObject" (?staticMetaObject@Tool@@2UQMetaObject@@B) referenced in function "public: static class QString __cdecl Tool::tr(char const *,char const *)" (?tr@Tool@@SA?AVQString@@PBD0@Z)
1>tool.obj : error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall Tool::metaObject(void)const " (?metaObject@Tool@@UBEPBUQMetaObject@@XZ)
1>tool.obj : error LNK2001: unresolved external symbol "public: virtual void * __thiscall Tool::qt_metacast(char const *)" (?qt_metacast@Tool@@UAEPAXPBD@Z)
1>tool.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall Tool::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@Tool@@UAEHW4Call@QMetaObject@@HPAPAX @Z)
1>C:\Users\Emin\Documents\Visual Studio 2005\Projects\Tool\Release\Tool.exe : fatal error LNK1120: 4 unresolved externals


Could anyone help me ? Cause, I have no idea, how i handle this error....

thanks!!!!!!!!

talk2amulya
15th February 2009, 19:42
the problem is with moc file..try removing the 'release' and 'generated files' files folder and rebuilding the whole application. most of the times, it solves such problems

undercover
15th February 2009, 20:14
it doesn't help :-( other ideas ?

spirit
15th February 2009, 20:16
try to rebuild project at all, i.e. remove all object files.

undercover
15th February 2009, 21:05
it doesn't help too... I tryied clean too...
Other opurtunitys that i can try ?

Lykurg
15th February 2009, 21:14
Have you also deleted your Makefiles? That was causing a similar error on my machine. So clear definitely all, except your files and the *.pro ;)

undercover
15th February 2009, 21:23
which files do you mean ? I removed the moc files... Now i have only one file in my generated folder...
???

Lykurg
16th February 2009, 11:22
Hi,

I don't know the real manes at windows but something like: Makefile, Makefile.am, Makefile.Release, Makefile.Debug etc..


Lykurg

undercover
16th February 2009, 15:59
it doesnt help too! :-(

spirit
16th February 2009, 16:08
could you provide compilable project?