×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Oct 2008
    Location
    India
    Posts
    219

    moc_ no found error?

    Hi just started working in QT and i am facing this error while importing already made QT example:-
    error :- moc_heapexamplewidget.cpp' not found..what is the reason?

  2. #2
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: moc_ no found error?

    Which example?

  3. #3
    Registered User
    Join Date
    Oct 2008
    Location
    India
    Posts
    219

    Re: moc_ no found error?

    example i found in the QT training, Qt_for_Symbian_Training_Course_v1_0_en_beta, example is HeapExampleCode_exercise

  4. #4
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: moc_ no found error?

    It compiles fine for me, please provide exact compile output.

  5. #5
    Registered User
    Join Date
    Feb 2011
    Posts
    1

    Re: moc_ no found error?

    Maybe because you used the wrong code.

  6. #6
    Registered User
    Join Date
    Dec 2006
    Posts
    2,280

    Re: moc_ no found error?

    Make sure heapexamplewidget.cpp is there and re-run qmake.

  7. #7
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: moc_ no found error?

    The moc_xxx.cpp files are generated automatically from the corresponding xxx.cpp files. If a moc file is missing that means that an earlier step failed for some reason. Likely there's an earlier error message.

Similar Threads

  1. No Class Def Found Error
    By itg2 in forum Mobile Java General
    Replies: 6
    Last Post: 2009-07-13, 18:57
  2. Nokia 6280 No Class Def Found Error
    By dave200 in forum Mobile Java General
    Replies: 3
    Last Post: 2008-04-10, 20:02
  3. No Class Def Found Error
    By mixmastermurf in forum Mobile Java General
    Replies: 9
    Last Post: 2008-04-08, 17:54
  4. No Class Def Found Error
    By NFC_Man in forum Mobile Java General
    Replies: 2
    Last Post: 2007-11-29, 14:11
  5. Application Error : No Class Def Found Error
    By josephsim in forum Mobile Java General
    Replies: 2
    Last Post: 2007-01-25, 20:49

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×