×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 20
  1. #1
    Regular Contributor
    Join Date
    Aug 2008
    Posts
    413

    Undefined symbol: 'TSmsAddr

    Hi all,

    in my application i require smsu.lib and smsuaddr.h files.I have copied these files from series 60 Plug in.

    1.I have copied smsu.lib file at \Epoc32\release\armv5\lib location and also at \Epoc32\release\winscw\udeb location

    2.And i have copied smsuaddr.h file at \Epoc32\include location.

    After doing above two things also i am getting error on the console that -

    Undefined symbol: 'TSmsAddr::TSmsAddr(void)(??0TSmsAddr@@QAE@XZ)'

    What may be the reason of error?

    Help Me..

    Rohanwaugh

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,572

    Re: Undefined symbol: 'TSmsAddr

    Quote Originally Posted by rohanwaugh View Post
    1.I have copied smsu.lib file at \Epoc32\release\armv5\lib location and also at \Epoc32\release\winscw\udeb location
    Guess why the original file resides in SMSUtilities\epoc32\release\armv5\lib? It will not work for WINSCW.

  3. #3
    Regular Contributor
    Join Date
    Aug 2008
    Posts
    413

    Re: Undefined symbol: 'TSmsAddr

    hi ,


    Sorry but i didn't understand what your saying..what wrong i did??
    What should be done??

    rohanwaugh

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,572

    Re: Undefined symbol: 'TSmsAddr

    Most API-s from the plugin pack come with support for the target devices only. You can not use ARM libraries for building code for the PC-based emulator, thus it is not possible to use TSmsAddr in the emulator (the mangled name ??0TSmsAddr@@QAE@XZ in the error message shows that you are building for the emulator - even if you are doing that accidentally).
    You should test your code in the target device.

  5. #5
    Regular Contributor
    Join Date
    Aug 2008
    Posts
    413

    Re: Undefined symbol: 'TSmsAddr

    hi

    Thanks.Now i got my mistake.Now i build application for phone release directly and sis file got generated without any problem.Now i will check the application by deploying on device directly..

    Rohanwaugh

  6. #6
    Regular Contributor
    Join Date
    Sep 2008
    Location
    India
    Posts
    126

    Re: Undefined symbol: 'TSmsAddr

    Hi all,

    I wrote following code >> to bind the smsAddr to socket

    TUint KEchoPort= 5000;
    TSmsAddr smsaddr;

    smsaddr.SetSmsAddrFamily(ESmsAddrSendOnly);
    smsaddr.SetPort(KEchoPort);
    myLogFile->writeLog(_L("SetPort"));

    User::LeaveIfError(socket.Bind(smsaddr));
    myLogFile->writeLog(_L("socket.Bind(smsaddr)"));
    But I get log upto "SetPort"......
    There is some probelm regarding socket.Bind(smsaddr)

    Can anybody tell me ... where I m getting wrong?

    Thanks and Regards,
    Kranti

  7. #7
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,572

    Re: Undefined symbol: 'TSmsAddr

    Either enable panic codes http://wiki.forum.nokia.com/index.ph...ded_panic_code, or simply log the return code of Bind prior to LeaveIfError.
    Personally I do not know what ESmsAddrSendOnly could be, but if it is something special for sending, it does not really make sense Bind-ing to it (since Bind is about receiving data).

  8. #8
    Regular Contributor
    Join Date
    Aug 2008
    Posts
    413

    Re: Undefined symbol: 'TSmsAddr

    Hi,

    Basically Kranti and i are working on same project.So my sis file is getting generated for phone release.Bcos as stated by wizard_hu we r using API's from Series 60 SDK Plug In so for emulator debugging it is giving errors on console.

    So we directly build our application for phone release.It worked fine.But as stated by Kranti in the previous thread we r getting error..So pls help us for Binding Socket..

    Thanks.

    Rohanwaugh

  9. #9
    Regular Contributor
    Join Date
    Sep 2008
    Location
    India
    Posts
    126

    Question Re: Undefined symbol: 'TSmsAddr

    Hi wizard_hu_,

    1. I am getting error code = -46 for
    (socket.Bind(smsaddr)

    2. Enum TSmsAddrFamily
    Description:
    SMS address family for a socket.

    ESmsAddrSendOnly >> Only for sending, no reception.
    .
    .
    .
    ESmsAddrApplication8BitPort >> For sock port identification.

    ESmsAddrApplication16BitPort >> For sock port identification.

    So I use "ESmsAddrSendOnly "


    Now I will try for remaining 2 related SMS address family for a socket.

    What could be the reason for binding error?
    I also searching for that ..... if u know... pls help....!

    Thanks and Regards,
    Kranti

  10. #10
    Regular Contributor
    Join Date
    Sep 2008
    Location
    India
    Posts
    126

    Re: Undefined symbol: 'TSmsAddr

    Hi ,

    http://www.newlc.com/article.php3?id_article=117

    KErrPermissionDenied -46

    What could be the reason for this?
    Any signing related issue?

    Thanks and Regards,
    Kranti

  11. #11
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,572

    Re: Undefined symbol: 'TSmsAddr

    Negative numbers: http://wiki.forum.nokia.com/index.php/Error_codes
    You will probably need at least the same capabilities that are necessary for MTM-based SMS communication. But it might be necessary to have more.

  12. #12
    Regular Contributor
    Join Date
    Sep 2008
    Location
    India
    Posts
    126

    Question Re: Undefined symbol: 'TSmsAddr

    Hi wizard_hu_,

    While signing .sis file I selected ALL capabilities.
    U mean that will not help to solve capability issue?
    Regarding "KErrPermissionDenied".

    Thanks and Regards,
    Kranti

  13. #13
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,572

    Re: Undefined symbol: 'TSmsAddr

    I simply do not know what ESmsAddrSendOnly is. However if it is about sending, I can not see the reason for Bind.

  14. #14
    Regular Contributor
    Join Date
    Sep 2008
    Location
    India
    Posts
    126

    Re: Undefined symbol: 'TSmsAddr

    Hi wizard_hu_,

    I want to send sms to perticular port....
    That's why I am using Bind...

    Is anything wrong in that?

    Thanks and Regards,
    Kranti

  15. #15
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,572

    Re: Undefined symbol: 'TSmsAddr

    Quote Originally Posted by Kranti View Post
    Is anything wrong in that?
    I simply do not know. I also see the SMS Utilities API example in the Wiki, but I have never tried it.

    Actually you have been participating in an other thread about sending SMS to port, http://discussion.forum.nokia.com/fo...d.php?t=147817
    You may try if the PDU-way works.

Similar Threads

  1. retrieve GSM cell id
    By ibec in forum Symbian Networking & Messaging (Closed)
    Replies: 312
    Last Post: 2012-06-10, 06:45
  2. GoogleIt
    By deepika.mangla in forum Symbian
    Replies: 5
    Last Post: 2011-05-28, 11:04
  3. [moved] HELP! Phone Debug (GCCE)
    By joseph.m in forum Symbian
    Replies: 18
    Last Post: 2008-07-14, 10:42
  4. mwldsym2.exe: Undefined symbol in Carbide.C++ 1.3
    By ValentinK in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 4
    Last Post: 2008-03-14, 15:23
  5. illegal use of abstract class error...
    By kannabiran.krish in forum Symbian
    Replies: 7
    Last Post: 2007-08-17, 10:11

Posting Permissions

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