×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Jul 2010
    Posts
    66

    Undefined reference to 'QtMobility::QMessageAccountFilter::QMessageAccountFilter()

    Hi

    I am having a hard time figuring out why this error appears on a new project I have created.

    I have two machines on which ive tried. One with Qt 4.6 + QTM 1.1 B2, and one with Qt 4.7 RC1 + QTM 1.1 B2.

    I am obviously missing something since this doesn't work.

    What bothers me the most is that in the same Carbide workspace, I have another project using QMessageAccountFilter, and it compiles fine. Both projects are set explicitly to use the same Qt version (even though only one Qt is installed on each machine).

    I have included the MOBILITY += messaging section in the project file, which the code below clearly shows, since I can use QMessageManager object.

    Code completion can see the class, and have correct suggestions, and thus F3 will take me to the header file as well, which is located in C:\s60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\include\middleware\qmessageaccountfilter.h

    So to sum up.
    1. I have two projects, each using Messaging API
    2. Both compiled with same Qt
    3. Both in same Carbide Workspace
    4. But only the simple example can't compile, because it can''t resolve QMessageAccountFilter class.
    5. Cpp file is pasted below.
    What have I done wrong?

    I hope somebody out there read this, and think it is obvious - cause it really annoys me not to be in more control.

    Best regards
    /Anders

    Code:
    #include <MessageManagerTest.h>
    #include <qmessagemanager.h>
    #include <qmessageaccountfilter.h>
    
    QTM_USE_NAMESPACE
    
    MessageManagerTest::MessageManagerTest(QWidget *parent)
        : QMainWindow(parent)
    {
    	ui.setupUi(this);
    	QMessageManager manager();
    	QMessageAccountFilter filter;
    }
    
    MessageManagerTest::~MessageManagerTest()
    {
    }

  2. #2
    Regular Contributor
    Join Date
    Jul 2010
    Posts
    66

    Re: Undefined reference to 'QtMobility::QMessageAccountFilter::QMessageAccountFilter(

    Classic mistake.

    Even though I needed to grap a collegue and make a walkthrough to find it.

    In the .pro file i had made a small typo. MOBILITY was written MOBILTIY.

    In the forum Nokia font, the mistake is easy to see, but in the default carbide font, only a few pixels makes the difference between TI and IT.

    But finally found it, and are ready to move on.

    /Anders

Similar Threads

  1. Undefined symbol: '__declspec(dllimport) QtMobility ?
    By damodharan in forum [Archived] Qt Mobility Project
    Replies: 3
    Last Post: 2010-09-27, 11:56
  2. Undefined reference...
    By Carthrat in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 3
    Last Post: 2010-07-16, 08:26
  3. undefined reference to QtMobility
    By Guilo19 in forum [Archived] Qt SDKs and Tools
    Replies: 4
    Last Post: 2010-06-24, 10:24
  4. GCCE Undefined reference
    By jllop in forum Open C/C++
    Replies: 4
    Last Post: 2009-09-18, 14:18
  5. Undefined reference...
    By parikhnirav.aits in forum Symbian
    Replies: 9
    Last Post: 2008-08-25, 20:08

Posting Permissions

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