×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jun 2003
    Posts
    5

    Linking problem using RDbNamedDatabase

    Hi guys,

    Bit of a newbie question I am afraid.

    I'm wanting to open a RDbNamedDatabase file, but can't get the code to link, not sure what I am doing wrong right now.

    Environment is: Series 60 SDK, MS Visual C++, and using the code fragments from http://www.symbian.com/developer/tec...bms/index.html (Using the EPOC Database Manager).

    Using client-server or client-side access produces same error. This statement:

    database.Open(fsSession, KDatabaseName)

    produces the following unresolved from VC++

    error LNK2001: unresolved external symbol "public: int __thiscall RDbNamedDatabase::Open(class RFs &,class TDesC8 const &,class TDesC8 const &,class CSecurityDecryptBase *,enum RDbNamedDatabase::TAccess)" (?Open@RDbNamedDatabase@@QAEH
    AAVRFs@@ABVTDesC8@@1PAVCSecurityDecryptBase@@W4TAccess@1@@Z)
    Release/DliverModel.dll : fatal error LNK1120: 1 unresolved externals

    I have edbms.lib in the Project Settings link options, and checked the library to ensure that the Open method was actually there...and it seemed to be. If I removed edbms.lib from the link settings then I get more link errors, so I know it is doing *something* - but I just can't find a way to make this Open call link.

    Must be something basic, any ideas, or should I just shoot myself now...?

    Paul

  2. #2
    Regular Contributor
    Join Date
    Apr 2003
    Posts
    52
    U Have to add edbms.lib to mmp file and compile it from command line


    Hope it help

    Meenu.

Posting Permissions

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