Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jun 2008

    [moved] error in code

    hi All!
    #include <stdio.h>
    #include <Etel3rdParty.h>
    #include <e32base.h>
    #include "CClientApp.h"
    // This is a GCCE toolchain workaround needed when compiling with GCCE
    // and using main() entry point
    #ifdef __GCCE__
    #include <staticlibinit_gcce.h>
    int main(void)
    	CTelephony* pd = CTelephony::NewLC();
    	printf("Hello Open C!\n");
    	printf("Press a character to exit!");
    	int c = getchar();
    	return 0;
    Compiler show this error
    Errors caused tool to abort.
    make[1]: *** [\Symbian\SDK\S60_3rd_FP2_SDK\epoc32\release\WINSCW\udeb\hw.exe] Error 1
    make: *** [TARGETHW] Error 2
    make -j 4 -s  -r -f "\Symbian\SDK\S60_3rd_FP2_SDK\EPOC32\BUILD\Symbian\carbide\workspace\hw\group\HW\WINSCW\HW.WINSCW" UDEB
    mwldsym2.exe: Undefined symbol: 'class CTelephony * CTelephony::NewLC(void) (?NewLC@CTelephony@@SAPAV1@XZ)'
    mwldsym2.exe: referenced from '_main' in hw.cpp:29
    How to declare a pointer of this type (CTelephony*) correctly?

  2. #2
    Nokia Developer Champion
    Join Date
    Mar 2006
    Helsinki, Finland

    Re: error in code

    You may need to include etel3rdparty.lib in your .mmp file.

    Nokia Developer Wiki Moderation team

  3. #3
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Tampere, Finland

    Re: error in code

    You may want to try that in a Symbian console or S60 GUI project. It can be made to work with Open C too, but maybe not if this is your first project on the platform ...

    Also, you're question has nothing to do with Carbide.c++ so I will move this to the General Symbian C++ forum.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  4. #4
    Registered User
    Join Date
    Jun 2008

    Re: error in code

    Quote Originally Posted by kiran10182 View Post
    You may need to include etel3rdparty.lib in your .mmp file.

    thank you
    now it compile without errors

  5. #5
    Super Contributor
    Join Date
    Mar 2004

    Re: [moved] error in code

    Still as suggested by docs and developers. it is good idea to separate out Native Symbian.C++ code from OpenC/C++ code.

Similar Threads

  1. Replies: 2
    Last Post: 2007-10-05, 20:40
  2. newbie : code 404 when trying to connect to localhost/test.txt
    By lynx3521 in forum Mobile Java General
    Replies: 3
    Last Post: 2007-09-25, 16:21
  3. Replies: 9
    Last Post: 2006-03-30, 08:36
  4. Link errors when trying to Display bitmap
    By Bkc82 in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2006-01-16, 22:46
  5. Replies: 0
    Last Post: 2003-09-26, 15:07

Posting Permissions

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