×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Dec 2009
    Posts
    4

    Problem in compiling QtMobility Messaging code to send email

    Hi I am trying to use QtMobility Messaging API's to send email.

    I am stuck with a linker error:

    error (Undefined symbol): '__declspec(dllimport) QtMobility::QMessageServiceAction::QMessageServiceAction(class QObject *) (__imp_??0QMessageServiceAction@QtMobility@@QAE@PAVQObject@@@Z)'
    1>error (Undefined symbol): '__declspec(dllimport)

    Is there dependency for using QMessageServiceAction other than QtMessaging lib.

    My sources file:
    CONFIG = mobility
    MOBILITY = messaging

    INCLUDES = ...\QtNetwork; \
    ...\qtmobility\src\global; \
    ...\qtmobility\src\messaging; \


    TARGETLIBS =
    .....\QtNetwork \
    ....\QtMessaging \

    EPOCCAPABILITIES = ReadUserData+WriteUserData+NetworkServices+WriteDeviceData+LocalServices+UserEnvironment+ReadDeviceData


    Thanks

  2. #2
    Nokia Developer Moderator
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Problem in compiling QtMobility Messaging code to send email

    Three things:
    1. CONFIG += mobility
    2. symbian:TARGET.CAPABILITY= = NetworkServices LocalServices ReadUserData WriteUserData UserEnvironment ReadDeviceData WriteDeviceData
    instead of EPOCCAPABILITIES
    3. QMessageServiceAction was replaced with QMessageService around 1.0 TP2.

    BTW, INCLUDES and TARGETLIBS are also wrong.

  3. #3
    Registered User
    Join Date
    Dec 2009
    Posts
    4

    Re: Problem in compiling QtMobility Messaging code to send email

    Hi divanov
    thanks for your reply.
    2. --> I am building it through commmand line and not Carbide project.
    So, as per i read it is mentioned as EPOCCAPABILITIES only.
    3. ---> SDK which I have contains QMessageServiceAction class and not QMessageService

Similar Threads

  1. Nokia email Messaging server problem?
    By ianm00 in forum General Development Questions
    Replies: 1
    Last Post: 2010-09-04, 06:51
  2. Replies: 1
    Last Post: 2010-04-29, 13:35
  3. problem in send email from contact list.
    By Nitesh Bhardwaj in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2008-11-10, 06:30
  4. Replies: 3
    Last Post: 2007-01-18, 11:27
  5. Replies: 0
    Last Post: 2004-09-09, 16:42

Posting Permissions

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