×

Discussion Board

Results 1 to 3 of 3

Thread: A link problem

  1. #1
    Regular Contributor
    Join Date
    Nov 2003
    Location
    China
    Posts
    94

    A link problem

    I met a linking problem like this:

    DEBUGMENU.obj : error LNK2001: unresolved external symbol _malloc
    DEBUGMENU.obj : error LNK2001: unresolved external symbol _free


    It occurs because I use STLport 4.5.1 for symbian in my application.I used "std::basic_string<> " ,and the errors occurs.Compiling is no problem.

    In www.stlport.com there are someone replied to me that
    "
    malloc/free are part of the native C runtime that your compiler must grant so link to it and everything should be fine.
    Those function are required for the standard allocator used within containers. auto_ptr _isn't_ a container and so, do not use an allocator. basic_string _is_ a container and use an allocator.
    "

    But I can use malloc and free in symbian ,so I don't know how to do it.
    Is there some one can give me some adovice?

    thanks alot.

  2. #2
    Registered User
    Join Date
    Aug 2003
    Location
    Oulu, Finland
    Posts
    1,122
    Have you linked with estlib.lib?

    Lauri

  3. #3
    Regular Contributor
    Join Date
    Nov 2003
    Location
    China
    Posts
    94
    yes ,this is my problem : )
    thanks alot~

Posting Permissions

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