Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor bballbeng's Avatar
    Join Date
    Jul 2006
    Posts
    77
    Hi, i tried to build my project but i keep getting this error..it says undefined reference to CBTPointToPointVideoView::NewL(TRect const &)

    Does anyone knows why his happens?? Thanks in advance!!!

  2. #2
    Registered User vin2ktalks's Avatar
    Join Date
    Jul 2005
    Location
    Bengaluru, India
    Posts
    747
    It seems to be a link error, do you really have a function NewL(TRect const &) in your specific header file? If you recently did some modifications to your source code may be a abld reallyclean <target> would help you. If still problem persists copy and paste the error code here.

  3. #3
    Regular Contributor bballbeng's Avatar
    Join Date
    Jul 2006
    Posts
    77
    i did include it in my header file for the newl method..abld clean??

  4. #4
    Regular Contributor bballbeng's Avatar
    Join Date
    Jul 2006
    Posts
    77
    This is my set of codes ...anything wrong with this??

    CBTPointToPointBitmapView* CBTPointToPointBitmapView::NewL(const TRect& aRect)
    {
    CBTPointToPointBitmapView* self = CBTPointToPointBitmapView::NewLC(aRect);
    CleanupStack::Pop(self);
    return self;
    }

    CBTPointToPointBitmapView* CBTPointToPointBitmapView::NewLC(const TRect& aRect)
    {
    CBTPointToPointBitmapView* self = new (ELeave) CBTPointToPointBitmapView;
    CleanupStack::PushL(self);
    self->ConstructL(aRect);
    return self;
    }

  5. #5
    Super Contributor stichbury's Avatar
    Join Date
    Nov 2005
    Location
    London
    Posts
    584
    There's nothing wrong with it...but is it in the same project that you're trying to build? Or is it in a separate dll? If the latter, you'll need to export it so that the project using the dll can link to it.

  6. #6
    Regular Contributor bballbeng's Avatar
    Join Date
    Jul 2006
    Posts
    77
    sorry guys...i forgot to add the source file to the mmp file where these methods reside..that is y the error occurs..keep forgetting when i add a new source file....problem is solved when i update the new source file in the mmp file...

Similar Threads

  1. Undefined reference error
    By owensul in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 4
    Last Post: 2011-03-14, 08:48
  2. carbide build problem help please
    By berkcekisbas in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2006-09-26, 19:41
  3. Whats missing?
    By imrank in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2006-08-28, 07:22
  4. 3rd edition: undefined reference
    By iulian_moldovan in forum Symbian C++
    Replies: 2
    Last Post: 2006-06-20, 14:11
  5. Replies: 5
    Last Post: 2006-05-31, 07:23

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved