Results 1 to 10 of 10

Thread: Unclear Error Message at Release!!!

  1. #1
    Join Date
    Feb 2009
    Posts
    7
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Unclear Error Message at Release!!!

    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:

    Qt Code:
    1. 1>------ Build started: Project: Tool, Configuration: Release Win32 ------
    2. 1>Linking...
    3. 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)
    4. 1>tool.obj : error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall Tool::metaObject(void)const " (?metaObject@Tool@@UBEPBUQMetaObject@@XZ)
    5. 1>tool.obj : error LNK2001: unresolved external symbol "public: virtual void * __thiscall Tool::qt_metacast(char const *)" (?qt_metacast@Tool@@UAEPAXPBD@Z)
    6. 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)
    7. 1>C:\Users\Emin\Documents\Visual Studio 2005\Projects\Tool\Release\Tool.exe : fatal error LNK1120: 4 unresolved externals
    To copy to clipboard, switch view to plain text mode 


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

    thanks!!!!!!!!

  2. #2
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    517
    Thanks
    21
    Thanked 66 Times in 62 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Unclear Error Message at Release!!!

    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

  3. #3
    Join Date
    Feb 2009
    Posts
    7
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: Unclear Error Message at Release!!!

    it doesn't help :-( other ideas ?

  4. #4
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Unclear Error Message at Release!!!

    try to rebuild project at all, i.e. remove all object files.
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

  5. #5
    Join Date
    Feb 2009
    Posts
    7
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: Unclear Error Message at Release!!!

    it doesn't help too... I tryied clean too...
    Other opurtunitys that i can try ?

  6. #6
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Unclear Error Message at Release!!!

    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

  7. #7
    Join Date
    Feb 2009
    Posts
    7
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: Unclear Error Message at Release!!!

    which files do you mean ? I removed the moc files... Now i have only one file in my generated folder...
    ???

  8. #8
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Unclear Error Message at Release!!!

    Hi,

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


    Lykurg

  9. #9
    Join Date
    Feb 2009
    Posts
    7
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: Unclear Error Message at Release!!!

    it doesnt help too! :-(

  10. #10
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Unclear Error Message at Release!!!

    could you provide compilable project?
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.