×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 30
  1. #1
    Registered User
    Join Date
    Dec 2007
    Posts
    24

    carbide c++ can't find headers.!!

    stdio.h,string.h ,stdlib.h is included in the include folder. But still the error is as follows:

    WARNING: Can't find following headers in System Include Path
    <_ansi.h> <sys\stdio_t.h> <time.h> <stdarg_e.h> <_ansi.h>
    (Sys Inc Paths "\Symbian\9.2\S60_3rd_FP1\EPOC32\include\" "\Symbian\9.2\S60_3rd_FP1\epoc32\include\variant" "C:\Program Files\CSL Arm Toolchain\bin\..\lib\gcc\arm-none-symbianelf\3.4.3\include\")
    Dependency list for "\newworkspace\testmpeg4\tst\src\main.c" may be incomplete.
    why is this error coming???

  2. #2
    Registered User
    Join Date
    Dec 2007
    Posts
    24

    Re: carbide c++ can't find headers.!!

    the error after building is:

    undefined reference to printf
    undefined reference to fopen
    undefined reference to fseek
    undefined reference to exit
    undefined reference to strcpy
    etc etc..
    inc folder already contains stdio.h,stdlib.h and string.h headers.
    why then the above error is coming??

  3. #3
    Super Contributor
    Join Date
    Aug 2005
    Location
    india
    Posts
    2,078

    Re: carbide c++ can't find headers.!!

    hi,

    add or include this line in ur mmp file..

    SYSTEMINCLUDE \EPOC32\INCLUDE \epoc32\include\libc

    Regards,
    Mateen Maldar
    "Whatever the mind can conceive and believe, the mind can achieve"

  4. #4
    Registered User
    Join Date
    Dec 2007
    Posts
    24

    Re: carbide c++ can't find headers.!!

    in the project->properties->c/c++ include paths and symbols->add external include path , i have added \EPOC32\INCLUDE \epoc32\include\libc

    still i am getting the error when i use active build configuration as phone debug gcce as follows:

    #error ERROR: Only Mac or Win32 targets supported! testapp/inc stdio.h line 23 1197880112076 536

    and with emulator debug WINSCW i am getting the error as follows:

    Undefined symbol: 'int E32Main(void) (?E32Main@@YAHXZ)'

    any suggetion why this error is occuring??

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,752

    Re: carbide c++ can't find headers.!!

    Quote Originally Posted by nokia_maniac View Post
    inc folder already contains stdio.h,stdlib.h and string.h headers.
    I think you have copied these files from somewhere else, not a Symbian SDK.
    still i am getting the error when i use active build configuration as phone debug gcce as follows:

    #error ERROR: Only Mac or Win32 targets supported! testapp/inc stdio.h line 23 1197880112076 536
    and you are still using them. Obviously there is no such #error ("Only Mac or Win32 targets supported!") in Symbian SDK-s...

  6. #6
    Registered User
    Join Date
    Dec 2007
    Posts
    24

    Re: carbide c++ can't find headers.!!

    The above error i am getting if i build without stdio.h,string.h and stdlib.h in the inc folder:

    Severity and Description Path Resource Location Creation Time Id
    error: `dispBuff' undeclared (first use in this function) tst/src main.c line 48 1197888413478 463
    error: `EXIT_FAILURE' undeclared (first use in this function) tst/src main.c line 158 1197888413478 477
    error: `EXIT_SUCCESS' undeclared (first use in this function) tst/src main.c line 306 1197888413478 482
    error: `FILE' undeclared (first use in this function) tst/src main.c line 133 1197888413478 470
    error: `fpInFileYUV' undeclared (first use in this function) tst/src main.c line 133 1197888413478 471
    error: `NULL' undeclared (first use in this function) tst/src main.c line 91 1197888413478 464
    error: `NULL' undeclared (first use in this function) tst/src main.c line 112 1197888413478 468
    error: `NULL' undeclared (first use in this function) tst/src main.c line 138 1197888413478 472
    error: `SEEK_SET' undeclared (first use in this function) tst/src main.c line 273 1197888413478 481
    error: parse error before '}' token tst/inc teldecinterface.h line 361 1197888413478 458
    error: parse error before "FILE" tst/inc teldecinterface.h line 347 1197888413478 454
    error: parse error before "FILE" tst/src main.c line 33 1197888413478 461
    stdio.h: No such file or directory tst/src main.c line 13 1197888413478 452
    stdlib.h: No such file or directory tst/src main.c line 12 1197888413478 451
    string.h: No such file or directory tst/src main.c line 14 1197888413478 453


    but if i put the above headerfiles in the inc folder from C:\Symbian\9.2\S60_3rd_FP1\Epoc32\include\libc , i am getting error as follows:

    Severity and Description Path Resource Location Creation Time Id
    _ansi.h: No such file or directory tst/inc stdlib.h line 22 1197888662829 486
    C:\Symbian\9.2\S60_3rd_FP1\Epoc32\include\libc\sys\reent.h _ansi.h: No such file or directory tst line 23 1197888662829 487
    C:\Symbian\9.2\S60_3rd_FP1\Epoc32\include\libc\sys\reent.h error: field `_sf' has incomplete type tst line 61 1197888662829 490
    C:\Symbian\9.2\S60_3rd_FP1\Epoc32\include\libc\sys\reent.h error: field `_struct_tm' has incomplete type tst line 65 1197888662829 491
    C:\Symbian\9.2\S60_3rd_FP1\Epoc32\include\libc\sys\reent.h sys/stdio_t.h: No such file or directory tst line 24 1197888662829 488
    C:\Symbian\9.2\S60_3rd_FP1\Epoc32\include\libc\sys\reent.h time.h: No such file or directory tst line 25 1197888662829 489
    error: parse error before "_ATTRIBUTE" tst/inc stdlib.h line 73 1197888662829 492
    stdarg_e.h: No such file or directory tst/inc stdio.h line 50 1197888662829 493



    in the src folder only main.c is there.plz help me,if you have some idea about this type of errors.


    Quote Originally Posted by wizard_hu_ View Post
    I think you have copied these files from somewhere else, not a Symbian SDK.and you are still using them. Obviously there is no such #error ("Only Mac or Win32 targets supported!") in Symbian SDK-s...

  7. #7
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,752

    Re: carbide c++ can't find headers.!!

    Since EXIT_FAILURE is #defined in the 44th line of stdlib.h in your SDK, I have to guess that you have not #include-d this one.

  8. #8
    Registered User
    Join Date
    Dec 2007
    Posts
    24

    Re: carbide c++ can't find headers.!!

    Severity and Description Path Resource Location Creation Time Id
    C:\Symbian\9.2\S60_3rd_FP1\Epoc32\include\libc\sys\reent.h _ansi.h: No such file or directory tst line 23 1197893541963 681
    C:\Symbian\9.2\S60_3rd_FP1\Epoc32\include\libc\sys\reent.h error: field `_sf' has incomplete type tst line 61 1197893541963 684
    C:\Symbian\9.2\S60_3rd_FP1\Epoc32\include\libc\sys\reent.h error: field `_struct_tm' has incomplete type tst line 65 1197893541963 685
    C:\Symbian\9.2\S60_3rd_FP1\Epoc32\include\libc\sys\reent.h sys/stdio_t.h: No such file or directory tst line 24 1197893541963 682
    C:\Symbian\9.2\S60_3rd_FP1\Epoc32\include\libc\sys\reent.h time.h: No such file or directory tst line 25 1197893541963 683



    the above errors i have found after adding all 3 headers.
    why these errors are still there??




    Quote Originally Posted by wizard_hu_ View Post
    Since EXIT_FAILURE is #defined in the 44th line of stdlib.h in your SDK, I have to guess that you have not #include-d this one.

  9. #9
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,752

    Re: carbide c++ can't find headers.!!

    _ansi.h is actually there in epoc32\include\libc, so does sys/stdio_t.h
    I do not really know what you are doing, and I do not care either, but have you added the line suggested by Mateen in #3, several hours ago?

  10. #10
    Registered User
    Join Date
    Dec 2007
    Posts
    24

    Re: carbide c++ can't find headers.!!

    Hi Mateen
    can u plz tell how to add the line 'SYSTEMINCLUDE \EPOC32\INCLUDE \epoc32\include\libc' in mmp file,i am using carbide c++ vs 1.2..

    Quote Originally Posted by mateen_maldar View Post
    hi,

    add or include this line in ur mmp file..

    SYSTEMINCLUDE \EPOC32\INCLUDE \epoc32\include\libc

    Regards,
    Mateen Maldar

  11. #11
    Super Contributor
    Join Date
    Aug 2005
    Location
    india
    Posts
    2,078

    Re: carbide c++ can't find headers.!!

    hi,

    open the mmp file in carbide ..

    go for the last tab in it menthioned urfile.mmp and paste the line ..

    SYSTEMINCLUDE \EPOC32\INCLUDE \epoc32\include\libc

    check the keyword "SYSTEMINCLUDE" in your mmp and add there..

    Regards,
    Mateen Maldar
    "Whatever the mind can conceive and believe, the mind can achieve"

  12. #12
    Registered User
    Join Date
    Dec 2007
    Posts
    24

    no .exe is created after building!!!

    when my build configuration is Emulator debug WINCSW, ,after building, the error i am getting is as follows:

    Undefined symbol: 'int E32Main(void) (?E32Main@@YAHXZ)'

    but with build configuration Phone Debug GCCE, building is complete !! but no exe file is created under
    Epoc32\release\gcce\udeb\.. please give suggetion why this happens? how can i get the exe file??

  13. #13
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: no .exe is created after building!!!

    Can you please post the MMP file and the build log from the GCCE UDEB build?
    -- 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

  14. #14
    Registered User
    Join Date
    Dec 2007
    Posts
    24

    Re: carbide c++ can't find headers.!!

    thanks matin.i have done what you have siggested.aftre doing that,
    when my build configuration is Emulator debug WINCSW, ,after building, the error i am getting is as follows:

    Undefined symbol: 'int E32Main(void) (?E32Main@@YAHXZ)'

    but with build configuration Phone Debug GCCE, building is complete !! but no exe file is created under
    Epoc32\release\gcce\udeb\.. please give suggetion why this happens? how can i get the exe file??









    Quote Originally Posted by mateen_maldar View Post
    hi,

    open the mmp file in carbide ..

    go for the last tab in it menthioned urfile.mmp and paste the line ..

    SYSTEMINCLUDE \EPOC32\INCLUDE \epoc32\include\libc

    check the keyword "SYSTEMINCLUDE" in your mmp and add there..

    Regards,
    Mateen Maldar

  15. #15
    Registered User
    Join Date
    Dec 2007
    Posts
    24

    Undefined symbol: 'int E32Main(void) (?E32Main@@YAHXZ)'

    Undefined symbol: 'int E32Main(void) (?E32Main@@YAHXZ)'

    this occurs using emulator debug WINCSW.
    why this error comes?? how to remove this error??

Similar Threads

  1. Carbide 1.0 to 1.2 library issue
    By Martin_Malek in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 6
    Last Post: 2008-08-24, 16:10
  2. Question about Carbide 1.2 project location
    By Martin_Malek in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 6
    Last Post: 2007-09-06, 08:07
  3. Replies: 5
    Last Post: 2006-10-31, 12:24
  4. Find pane
    By dlife in forum Symbian User Interface
    Replies: 1
    Last Post: 2006-10-02, 02:08
  5. list box example
    By murmur20 in forum Symbian User Interface
    Replies: 1
    Last Post: 2004-11-09, 04:42

Posting Permissions

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