×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    50

    How to statically load against a DLL in Symbian OS Application?

    For dynamically loading against DLL in Symbian OS Application, we use dlopen, dlsym, etc API function, but what is statically loading agaist DLL in Symbian OS Application? How to do a statically loading against DLL in Symbian OS??
    Please can you give me some help!!

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: How to statically load against a DLL in Symbian OS Application?

    Include lib in your MMP file.

  3. #3
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    50

    Thumbs up Re: How to statically load against a DLL in Symbian OS Application?

    Quote Originally Posted by skumar_rao View Post
    Include lib in your MMP file.
    Thank you!!! Does the lib always will be generated once I build out the corresponding DLL file? Where is it located? Please kindly give me information on this!

  4. #4
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: How to statically load against a DLL in Symbian OS Application?

    only when you use EXPORTUNFROZEN in your MMP File.

  5. #5
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    50

    Thumbs up Re: How to statically load against a DLL in Symbian OS Application?

    Quote Originally Posted by skumar_rao View Post
    only when you use EXPORTUNFROZEN in your MMP File.
    Thanks! I will check with it. Does that mean, once I put *.lib file in the mmp, my App code will statically loads the DLL and i can directly call the APIs defined in the DLL file?

  6. #6
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: How to statically load against a DLL in Symbian OS Application?

    yes. you can use the DLL Functions as any Static Lib Functions.

  7. #7
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    50

    Thumbs up Re: How to statically load against a DLL in Symbian OS Application?

    Quote Originally Posted by skumar_rao View Post
    yes. you can use the DLL Functions as any Static Lib Functions.
    It is very strange! I suppose it works, but when I in my App code to include the DLL file related header file, and also links the *.lib file in the MMP file, I did a direct API call such as LoadInside1() in my APP code, I do the build project, it gives the following build error,

    Undefined symbol: 'void LoadInside1(char const *, char *) (?LoadInside1@@YAXPBDPAD@Z)'

    Is there something wrong??

  8. #8
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: How to statically load against a DLL in Symbian OS Application?

    I assume that you are using EXPORT IMPORT in CPP and H of your DLL code.

  9. #9
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    50

    Thumbs up Re: How to statically load against a DLL in Symbian OS Application?

    Quote Originally Posted by skumar_rao View Post
    I assume that you are using EXPORT IMPORT in CPP and H of your DLL code.
    Yes!! Should I remove IMPORT and EXPORT from the DLL's H and CPP file? I just did the remove, but building the App project still gives me the same error. I missed anything??

  10. #10
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: How to statically load against a DLL in Symbian OS Application?

    No you must int remove EXPORT IMPORT.
    I suggest you do a clean build.

  11. #11
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    50

    Re: How to statically load against a DLL in Symbian OS Application?

    Quote Originally Posted by skumar_rao View Post
    No you must int remove EXPORT IMPORT.
    I suggest you do a clean build.
    “No you must int remove EXPORT IMPORT.” Or you mean I must keep the IMPORT and EXPORT?? Or remove them?

  12. #12
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: How to statically load against a DLL in Symbian OS Application?

    You must keep IMPORT and EXPORT.

  13. #13
    Super Contributor
    Join Date
    Jul 2006
    Location
    Oulu, Finland.
    Posts
    1,174

    Re: How to statically load against a DLL in Symbian OS Application?

    This thread has some discussion about generating import library.

  14. #14
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    50

    Thumbs up Re: How to statically load against a DLL in Symbian OS Application?

    Quote Originally Posted by vasant21 View Post
    This thread has some discussion about generating import library.
    Before anything else, I have quick question here,
    1. For freeze operation,why in the .def file, before the functional name to be exported, there may be a ? sometimes, and othertimes, there is no ? beforehead.

    2. Why does it have two forms after the ordinal number in the def file, sometimes it is NONAME; sometimes it is NONAME ABSENT;

    Why is there such different thing for one same operation of freezing??

  15. #15
    Super Contributor
    Join Date
    Aug 2005
    Location
    india
    Posts
    2,078

    Re: How to statically load against a DLL in Symbian OS Application?

    Hi,

    check in your sdk help for

    Symbian OS guide » P.I.P.S. » P.I.P.S. Guide » Porting Using P.I.P.S. » Dynamic Link Libraries

    to know more about Dynamic Link Libraries

    Regards,
    Mateen Maldar
    "Whatever the mind can conceive and believe, the mind can achieve"

Page 1 of 2 12 LastLast

Similar Threads

  1. how to open j2me application through symbian
    By rkmohanty in forum Symbian C++
    Replies: 5
    Last Post: 2008-08-28, 19:09
  2. S60 application structure(view switch) in DLL problems
    By bill-wang in forum Symbian C++
    Replies: 4
    Last Post: 2008-07-17, 10:00
  3. Current Symbian Development Opportunities...!!
    By mobile2004 in forum Symbian C++
    Replies: 0
    Last Post: 2005-01-17, 17:58
  4. http get or post from symbian application
    By plmanikandan in forum Symbian C++
    Replies: 1
    Last Post: 2005-01-03, 15:20
  5. Global Symbian Development Opportunities *High Importance*
    By sara.lindsay in forum Symbian C++
    Replies: 2
    Last Post: 2004-05-08, 09:09

Posting Permissions

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