×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jun 2009
    Posts
    7

    illegal function overloading

    ffmpeg is compiled completely.(http://tongari.at/symbian/ffmpeg/index.html)
    but when my app include ffmpeg, raise below error(illegal function overloading).
    i don't know what to do. help plz...

    and i have a additional question,
    is there any compiled ffmpeg decoder?
    i know that movino project have only ffmpeg encoder binary.

    sorry for poor eng.
    thanks in advance.

    Code:
    //////////////////////////////////
    // my mmp
    SYSTEMINCLUDE \epoc32\include \epoc32\include\variant \epoc32\include\ecom \epoc32\include\libc
    USERINCLUDE	   ..\inc ..\data \Symbian\prj\ffmpeg\src \Symbian\prj\ffmpeg\src\libavcodec \Symbian\prj\ffmpeg\src\libavformat \Symbian\prj\ffmpeg\src\libavutil \Symbian\prj\ffmpeg\src\libswscale
    
    
    LIBRARY			euser.lib apparc.lib cone.lib eikcore.lib avkon.lib
    LIBRARY			commonengine.lib efsrv.lib estor.lib eikcoctl.lib eikdlg.lib 
    LIBRARY			eikctl.lib bafl.lib fbscli.lib aknnotify.lib aknicon.lib
    LIBRARY			etext.lib gdi.lib egul.lib insock.lib
    LIBRARY			ecom.lib InetProtUtil.lib http.lib esock.lib edbms.lib estlib.lib
    
    STATICLIBRARY libavcodec.lib
    STATICLIBRARY libavformat.lib
    STATICLIBRARY libswscale.lib
    STATICLIBRARY libavutil.lib
    
    
    
    //////////////////
    // error
    ..\..\..\..\S60\devices\S60_5th_Edition_SDK_v1.0_2\epoc32\include\libc\stdio.h:162: illegal function overloading
    ..\..\..\..\S60\devices\S60_5th_Edition_SDK_v1.0_2\epoc32\include\libc\stdio.h:162: (included from:
    ..\..\..\..\S60\devices\S60_5th_Edition_SDK_v1.0_2\epoc32\include\libc\stdio.h:162:     C:\prj\ffmpeg\src\libavformat\avformat.h:39
    ..\..\..\..\S60\devices\S60_5th_Edition_SDK_v1.0_2\epoc32\include\libc\stdio.h:162:     C:\prj\my\inc\FxFFmpeg.h:36
    ..\..\..\..\S60\devices\S60_5th_Edition_SDK_v1.0_2\epoc32\include\libc\stdio.h:162:     C:\prj\my\src\FxFFmpeg.cpp:11)
    
    Errors caused tool to abort.
    make[1]: *** [\S60\devices\S60_5th_Edition_SDK_v1.0_2\EPOC32\BUILD\Symbian\prj\my\group\my\WINSCW\udeb\FxFFmpeg.o] Error 1
    make: *** [TARGETFNX] Error 2
    Last edited by iron94; 2010-04-06 at 01:18.

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: illegal function overloading

    hello iron94

    this much detail cant get you a good help here.

    This is an c++ error so check out you class implementation, you might have done some simple mistake there.

    Regards,

  3. #3
    Registered User
    Join Date
    Aug 2003
    Location
    Oulu, Finland
    Posts
    1,122

    Re: illegal function overloading

    Line 162 of libc/stdio.h contains the following declaration:
    Code:
    IMPORT_C int	puts		(const char *);
    What the "illegal function overloading" error means is that somewhere in the compilation unit there's a different declaration of puts() with a different signature (argument types) or return type. C++ does support function overloading by signature but C doesn't, and the standard C headers are wrapped in an extern "C" block making them follow C linkage rules with no overloading.

    So, check for other declarations (explicit or implicit) of puts() function.

Similar Threads

  1. Working on emulator but not on the phone!!!
    By bravvve in forum Symbian
    Replies: 7
    Last Post: 2009-09-23, 06:01
  2. Why don't S60 emulator loading?
    By K.John in forum Feedback - Nokia Developer Services & Infrastructure
    Replies: 9
    Last Post: 2009-08-11, 11:03
  3. Help with lnk2019 lnk1120 error
    By yuenfatt in forum Symbian
    Replies: 8
    Last Post: 2007-08-24, 08:21
  4. C-code..unable to make sis
    By Symbian_Neil in forum Symbian
    Replies: 9
    Last Post: 2006-12-02, 07:55
  5. Can't start thread function
    By liuhoihing in forum Symbian
    Replies: 0
    Last Post: 2003-05-05, 06:35

Posting Permissions

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