×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Aug 2004
    Posts
    11

    How to use "C" functions in Symbian

    Dear friends,

    I have tried a program in which i included a '.lib' file in Project>Settings.

    The .lib is produced by compiling a set of c files.In my program I just

    called the "C" function after including the header file.

    But it gives me the following errors.

    NEW1APPUI.obj : error LNK2001: unresolved external symbol "unsigned char __cdecl EcrioIMSTkRegister(struct EcrioIMSTkStruct *)" (?EcrioIMSTkRegister@@YAEPAUEcrioIMSTkStruct@@@Z)
    \Symbian\6.1\Series60\EPOC32\BUILD\CLIENT\TEST-APPS\SYMBIAN\NEW1\GROUP\NEW1\WINS\UREL\NEW1.APP : fatal error LNK1120: 1 unresolved externals

    Thanks in advance.

    Urs,
    PL.Ramanathan

  2. #2
    Super Contributor
    Join Date
    Jul 2004
    Location
    Romania
    Posts
    560
    The problem is in lib. Check what other libraries do you need.

  3. #3
    Registered User
    Join Date
    Aug 2004
    Location
    Germany
    Posts
    24
    include estlib.lib in your project

    i had a similar problem few days ago using c functions and it worked fine then

  4. #4
    Registered User
    Join Date
    Aug 2004
    Posts
    11

    I am not getting the answer plz help

    I included all the .lib files with the correct location in addition to

    the previous files that is automatically created that is,

    in Project settings other than this i included some files.

    "\Symbian\6.1\Series60\EPOC32\RELEASE\WINS\UREL\EDLL.LIB" "\Symbian\6.1\Series60\EPOC32\RELEASE\WINS\UDEB\euser.lib" "\Symbian\6.1\Series60\EPOC32\RELEASE\WINS\UDEB\apparc.lib" "\Symbian\6.1\Series60\EPOC32\RELEASE\WINS\UDEB\cone.lib" "\Symbian\6.1\Series60\EPOC32\RELEASE\WINS\UDEB\eikcore.lib" "\Symbian\6.1\Series60\EPOC32\RELEASE\WINS\UDEB\eikcoctl.lib" "\Symbian\6.1\Series60\EPOC32\RELEASE\WINS\UDEB\avkon.lib" "\Symbian\6.1\Series60\EPOC32\BUILD\CLIENT1\TEST-APPS\SYMBIAN\NEW1\GROUP\NEW1\WINS\UREL\NEW1.exp


    and in Preprocessor of Project>settings

    i included the corresponding header files.

    I am still getting Linker error & the program gets compiled well.

    Is there a need to any include anything(any statements) in .mmp

    file other than the one automatically created.

    I am having this problem for the past 1 week.

    I am not able to do other things because of this error.

    Please help me friends.

    Thank u.
    Urs,
    PL.Ramanathan

  5. #5
    Super Contributor
    Join Date
    Jul 2004
    Location
    Romania
    Posts
    560
    Search in which library is defined EcrioIMSTkRegister and include this library in mmp file

    Lucian

Posting Permissions

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