×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Oct 2007
    Posts
    2

    Problems with static lib

    Hi there,

    I'm new to the Symbian/Carbide world, but have played around for a few weeks and successfully built some programs to run on the emulator as well as real phones.

    Now I want to build a static lib and use it. Basically the lib just contains a dummy function and was built from the wizard. It builds ok for both emulator and GCCE.

    Then I tried using the library in another project, i.e. I put the header file in there and added "LIBRARY testlib.lib" to the mmp file. It built fine for the emulator, and also running it worked fine (i.e. the library function returned the right value)

    Now the problem: I tried building it for GCCE, and get "EPOC32\RELEASE\ARMV5\LIB\TestLib.dso: No such file: No such file or directory"

    So, it needs a file called TestLib.dso but there is no such file even though the library was built fine for the GCCE target. The only output I have is one version of TestLib.lib in EPOC32\RELEASE\ARMV5\UREL\ and one in EPOC32\RELEASE\ARMV5\UDEB\, but nothing ends up in EPOC32\RELEASE\ARMV5\LIB\ (no lib file, no dso file). Also, there is no TestLib.dso file to be found anywhere.

    What am I doing wrong here? (Carbide C++ 1.2, S60 3rd Ed, FP1)

  2. #2
    Registered User
    Join Date
    Oct 2007
    Posts
    2

    Re: Problems with static lib

    I'm using the Express version of Carbide C++ if that has anything to do with it.

    I did notice that http://www.forum.nokia.com/main/reso...omparison.html
    says the Express version has no "Enhanced build target support
    (ARMv5, ARMv5_ABIv2, ARMv6, etc.)". Is this related?

  3. #3
    Nokia Developer Expert
    Join Date
    Dec 2004
    Location
    Austin, TX
    Posts
    399

    Re: Problems with static lib

    I think you need to manually copy the .lib file under \epoc32\release\armv5\lib\ and then make sure you add it to the MMP file that will link against it as "STATICLIBRARY testlib.lib"

    Has nothing to do with enhanced support.

    Tim

Similar Threads

  1. GoogleIt
    By deepika.mangla in forum Symbian
    Replies: 5
    Last Post: 2011-05-28, 11:04
  2. Python for UIQ
    By cassioli in forum Symbian
    Replies: 141
    Last Post: 2008-06-11, 18:16
  3. problems when compiling a static lib....
    By GeKI in forum Symbian
    Replies: 1
    Last Post: 2006-01-24, 20:58
  4. Linking Static DLL with another Static DLL
    By symbianfresher in forum Symbian
    Replies: 6
    Last Post: 2006-01-09, 04:23
  5. some problems with label
    By vivienzhung in forum Mobile Java General
    Replies: 1
    Last Post: 2002-10-21, 09:52

Posting Permissions

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