×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jan 2010
    Posts
    43

    querymessages example not compiling when QMessageStore is added

    Hi,

    I ran the logfileposition example on the N97-mini, that worked fine. The messaging example querymessages won't compile when I try to use QMessageStore::instance() and some other members of the class. I get link errors saying that the function QMessageStore::instance() is not defined. I wanted to build on the examples.

    Why isn't the querymessages example code compiling when I add QMessageStore and related headers? This also happens in my own code.

    I didn't build the libs (just used the zipped file's install_to_sdk binaries) at first but after things didn't work I built the QMessage libs and added them to my .pro file and still I get errors.

    I have another version of qtm with a _tp suffix, when I build that it links fine, but I don't have the rights to install the .sis files on the phone!

    Here are the errors:
    "\S60\devices\S60_5th_Edition_SDK_v1.0\EPOC32\BUILD\Symbian\Carbide\workspace\PhoneApp\PHONEAPP_0XE85CB282\GCCE\PHONEAPP_0XE85CB282.GCCE" UREL
    \S60\devices\S60_5th_Edition_SDK_v1.0\EPOC32\BUILD\Symbian\Carbide\workspace\PhoneApp\PHONEAPP_0XE85CB282\GCCE\urel\PhoneApp.o: In function `PhoneApp::PhoneApp(QWidget*)':
    phoneapp.cpp.text+0x5e): undefined reference to `QtMobility::QMessageStore::instance()'
    \S60\devices\S60_5th_Edition_SDK_v1.0\EPOC32\BUILD\Symbian\Carbide\workspace\PhoneApp\PHONEAPP_0XE85CB282\GCCE\urel\PhoneApp.o: In function `PhoneApp::PhoneApp(QWidget*)':
    phoneapp.cpp.text+0x116): undefined reference to `QtMobility::QMessageStore::instance()'
    make[1]: *** [\S60\devices\S60_5th_Edition_SDK_v1.0\epoc32\release\gcce\urel\PhoneApp.exe] Error 1
    make: *** [TARGETPHONEAPP_0XE85CB282] Error 2


    Thanks,
    Jim
    Last edited by jmclaurin11; 2010-04-26 at 21:14.

  2. #2
    Registered User
    Join Date
    Jan 2010
    Posts
    43

    Re: querymessages example not compiling when QMessageStore is added

    Hi,

    I resolved this problem. QMessageStore appears to be a back-end class that's not part of the public interface of the Messaging API. QMessageManager delegates the functionality of QMessageStore. The examples I was looking at used QMessageStore directly. I guess they're using an old version of Qt-Mobility.


    Jim

Similar Threads

  1. Replies: 4
    Last Post: 2008-03-11, 06:49
  2. Replies: 9
    Last Post: 2007-08-31, 07:39
  3. Compiling assembly files(.S) by command line
    By vvsnaresh in forum Symbian C++
    Replies: 2
    Last Post: 2007-05-15, 10:10
  4. HELP!: Error compiling ....
    By SpaceCowboy in forum Mobile Java General
    Replies: 0
    Last Post: 2003-08-19, 16:21
  5. Problem compiling BIOexample & BIOcontrol
    By tianlye in forum Symbian C++
    Replies: 1
    Last Post: 2003-02-18, 18:31

Posting Permissions

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