Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    May 2010

    Errors linking to a Symbian DLL

    Hello everyone,

    I'm trying to write a Qt program to access APIs within a compiled Symbian C++ DLL library.

    I've managed to create an instance and constructor for the library. There's no issue when I compile the DLL itself.

    When my Qt program is set to call a function from the library, there aren't any build errors on compiliation but a new .exe isn't created. A look at the console showed these errors:

    - illegal use of incomplete struct/union/class 'RFs'
    - illegal use of incomplete struct/union/class 'RFile'
    - unidentified identifier 'TFileText'

    Error caused tool to abort.

    How can a Qt function access the RFile object in a Symbian DLL?

    (I'm running Carbide C++ v. 2.6, with S60 5th ed. and Qt v. 4.6.3 on WinXP.)

  2. #2
    Registered User
    Join Date
    Aug 2008

    Re: Errors linking to a Symbian DLL

    Please make sure you include f32file.h and link with efsrv.lib

    Please don't forget to add proper capabilities to Your project file .pro

    symbian {

    where x1 x2 are required capabilities

    for example

    symbian {
    TARGET.CAPABILITY = ReadUserData \
    WriteUserData \
    ReadDeviceData \
    WriteDeviceData \
    TARGET.EPOCHEAPSIZE = 0x20000 0x2000000
    MMP_RULES += "LIBRARY efsrv.lib "


  3. #3
    Registered User
    Join Date
    May 2010

    Re: Errors linking to a Symbian DLL


    It's working well, no more illegals. Thanks!

  4. #4
    Registered User
    Join Date
    May 2010

    Re: Errors linking to a Symbian DLL

    I've hit another issue. My Qt program must access an existing Symbian C++ library on a smartphone. I've created an instance and constructor:

    CLibrary *iEngine = CLibrary::NewLC(*this);

    but when I run it, instead of showing a blank UI as it should the app doesn't even boot at all. I'm unsure whether the problem lies in error handling or the phone environment.

    Thanks in advance for any insight you could provide!

Similar Threads

  1. STATICLIBRARY giving the linking errors
    By parthasaradhi6 in forum Symbian
    Replies: 3
    Last Post: 2007-11-05, 12:47
  2. Replies: 2
    Last Post: 2006-10-05, 13:42
  3. Linking Errors!!!
    By Priju Jacob Paul in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2005-10-26, 14:45
  4. Linking Errors: Pls Help....
    By amanjha14 in forum Symbian
    Replies: 2
    Last Post: 2004-12-03, 09:03
  5. linking warnings and errors
    By MMorpheus in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2004-02-03, 14:39

Posting Permissions

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