×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor
    Join Date
    May 2007
    Posts
    96

    The solution to “undefined reference”and “relocation truncated” (mostly concern cell-

    The solution to “undefined reference”and “relocation truncated” (mostly concern cell-id stuffs)

    While covering a program concerning RBasicGsmPhone or so stuffs,i got into the problem that my program can compile in the emulator but cannot work in the ARMI release mode (or maybe THUMB which I have not tried). The Problem is mainly

    undefined reference to `RBasicGsmPhone::RBasicGsmPhone(void)' relocation truncated to fit: ARM_26...
    RBasicGsmPhone::RBasicGsmPhone(void) ...

    Having checked up the program i could get it through on the emulator but not ARMI.I searched through the nokia forum and got nothing.Lots of people ever got the same problem as " undefined reference " and "relocation truncated",especially about the "cell-id" stuff,but without any solution. I saw one thread that is similar to my problem:
    GeoLog.in(GeoLogContainer.o)(.text+0x494):GeoLogContaine: relocationtruncated to fit: ARM_26 RFs::Connect(int)
    GeoLog.in(GeoLogContainer.o)(.text+0x4b4):GeoLogContaine: undefined reference to `RFile::Open(RFs &, TDesC16 const &, unsigned
    http://discussion.forum.nokia.com/fo...runcated+write
    here the problem is that it used RFile and RFs,and using the two you have to include : Location: f32file.h (include it in your .cpp file) Link against: efsrv.lib (include in your .mmp file)

    Back to my problem,i have

    include <etelbgsm.h>
    include <etel.h>
    and in my mmp
    LIBRARY etel.lib // Telephony server LIBRARY
    gsmbas.lib // Get cell id
    Just as above,i also include a gsmbas.lib in the :Symbian\7.0s\Series60_v21_C\Epoc32\release\armi\urel,which i got from (SYSINFO60\data). i have got all needed then it may because of the wrong version of some *.h or *.lib.
    Why not have a try? I download the Series60_v20 one and copy the wanted lib to my Series60_v21_C\...\urel and compile again .
    Compile and BANG! IT WORKS.
    So,i think that almost all similar problems are caused by short of *.lib(s) or *.h(s) for the needed ,or by short of PROPER ones. Or caused by broken ones.
    Due to my little experience ,I do not know it to the deep , I hope someone can explain it more clearly or at least point out my misunderstand. easy way to solve the problem, you can just replace it with a proper one.
    Then that is all. also i got a question for your experts: is there anything with the order in which the libraries were set in the mmp file? What does this thread mean? http://discussion.forum.nokia.com/fo...794#post290794
    Last edited by team-vx; 2007-07-14 at 06:36.

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,144

    Re: The solution to “undefined reference”and “relocation truncated” (mostly concern cell-

    not sure hwat the copyright holders think of you distributing their stuff, I would recomend removing that zip from your site..

    Anyway these classes are non-public and not recoomended to be used, and they are intented to be used only with 1st edition devices, and propably will not work on newer devices.

    yucca

  3. #3
    Regular Contributor
    Join Date
    May 2007
    Posts
    96

    Re: The solution to “undefined reference”and “relocation truncated” (mostly concern cell-

    anyway it is for good,i mean no harm.
    i search through the forum and found lots of similar questions but no answers.
    If you guys do not like it i will delete it?

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,144

    Re: The solution to “undefined reference”and “relocation truncated” (mostly concern cell-

    the rar file, you mentioned that it has some libraries that you took out from SDK, I', rather sure that you are not allowed to re-distribute them.

    Also, please remember when writing in wiki that it is information sharing platform, and you are not supposed to post questions in it...

    yucca

  5. #5
    Regular Contributor
    Join Date
    May 2007
    Posts
    96

    Re: The solution to “undefined reference”and “relocation truncated” (mostly concern cell-

    still nobody answer my question................

  6. #6
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,144

    Re: The solution to “undefined reference”and “relocation truncated” (mostly concern cell-

    “undefined reference” mena that the implementation is not found, which means that the header for the class was located but the library was not.

    So to get rid of this you just need to addd the library to the project and re-build the workspace (i.er. re-import with codewarrion for example), and then the bceed.

    Anyway, if the library is not present in the SDK, then of course you can not use the API. You should never copy librarties from older SDK's to never ones, since they might not be compatible, instead you should check if you could use some other API that is present to get the task done.

    If not, then you could check if ytou could use the channels available to obtain the required libraries from Nokia.

    yucca

  7. #7
    Regular Contributor
    Join Date
    May 2007
    Posts
    96

    Re: The solution to “undefined reference”and “relocation truncated” (mostly concern cell-

    Quote Originally Posted by symbianyucca
    “undefined reference” mena that the implementation is not found, which means that the header for the class was located but the library was not.

    So to get rid of this you just need to addd the library to the project and re-build the workspace (i.er. re-import with codewarrion for example), and then the bceed.

    Anyway, if the library is not present in the SDK, then of course you can not use the API. You should never copy librarties from older SDK's to never ones, since they might not be compatible, instead you should check if you could use some other API that is present to get the task done.

    If not, then you could check if ytou could use the channels available to obtain the required libraries from Nokia.

    yucca

    that is so nice
    thanks

Similar Threads

  1. I have some question about Cell ID and Cell Name
    By clickzika in forum Symbian Networking & Messaging (Closed)
    Replies: 6
    Last Post: 2008-12-03, 14:46

Posting Permissions

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