×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    May 2010
    Location
    Egypt
    Posts
    433

    Question Warning : warning: `CContactDatabase' is already a friend of `CContactItem'

    Hi all,

    I have always a warning - Not Error - when I compile my application using Carbide.C++ 2.7 and S60 5th Ed SDK

    These are my included files
    #include <cntdb.h> // CContactDatabase
    #include <cntitem.h> //CContactItem,CContactItemFieldSet

    #include <badesca.h> //CDesCArrayFlat
    #include <rpbkviewresourcefile.h> //RPbkViewResourceFile
    #include <cpbkcontactengine.h> //CPbkContactEngine
    #include <cpbkmultipleentryfetchdlg.h> //CPbkMultipleEntryFetchDlg
    #include <cntdef.h> //TContactItemId
    #include <cpbkcontactitem.h> // CPbkContactItem
    #include <cpbkemailaddressselect.h> //CPbkEmailAddressSelect
    #include <tpbkcontactitemfield.h> //TPbkContactItemField
    This is what I see in Carbide Console view:
    In file included from /Symbian/S605th/S60_5th_Edition_SDK_v1.0/epoc32/include/TPbkContactItemField.h:34,
    from /Symbian/S605th/S60_5th_Edition_SDK_v1.0/epoc32/include/cpbkcontactitem.h:29,
    from /Symbian/Carbide/workspaceFinal/test/src/test_mycontactsview.cpp:35:
    /Symbian/S605th/S60_5th_Edition_SDK_v1.0/epoc32/include/cntitem.h:208: warning: `CContactDatabase' is already a friend of `CContactItem'


    Is this a known issue in 5th SDK, is there a fix available ?



    Many thanks in advance.
    Nokia Asha applications [Price Point Policy] [Unlimited Updates] [Suggestions]: http://www.developer.nokia.com/Community/Discussion/showthread.php?240423-Nokia-Asha-applications-Price-Point-Policy-Unlimited-Updates-Suggestions

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,689

    Re: Warning : warning: `CContactDatabase' is already a friend of `CContactItem'

    If it really disturbs you, you could check that line, and if it happens to be duplicated in the same class definition. If that is the problem (I am guessing based on the message only), it is safe to comment one of them.

Similar Threads

  1. Warning: Traffic View: Listing of TCP/UDP Received traffic is set to off (see Monitor
    By duanbo in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2009-01-16, 11:04
  2. [Compile Warning] warning: no newline at end of file
    By SymNLeaner in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 6
    Last Post: 2007-03-07, 08:24
  3. How to update a CContactItem in CContactDatabase?
    By Casper1314 in forum Symbian
    Replies: 1
    Last Post: 2006-10-30, 04:15
  4. bluetooth warning is low
    By mprotocol in forum Bluetooth Technology
    Replies: 0
    Last Post: 2005-10-29, 13:04
  5. one warning is coming
    By yasomca in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2005-10-24, 09:48

Posting Permissions

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