×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Nov 2008
    Posts
    4

    string errors using stlport

    Hi,
    I'm using Carbide V3.01 with Visual Studio 2005. I'm getting compiler errors while using string. I have included stlport includes.
    Can somebody help me in solving these errors.
    I'm building the GCCE build for release version.

    My .mpp files contains these includes.

    SYSTEMINCLUDE \epoc32\include\stdapis\stlport
    SYSTEMINCLUDE \epoc32\include\stdapis
    USERINCLUDE ..\inc
    USERINCLUDE ..\..\TestLib\inc
    USERINCLUDE ..\help
    SYSTEMINCLUDE \epoc32\include


    And I'm getting these compiler errors.

    In file included from ..//..//..//..//Symbian//9.1//S60_3rd//EPOC32//include//stdapis//stlport/stl/_alloc.h:31,
    from ..//..//..//..//Symbian//9.1//S60_3rd//EPOC32//include//stdapis//stlport/memory:32,
    from ..//..//..//..//Symbian//9.1//S60_3rd//EPOC32//include//stdapis//stlport/stl/_string.h:25,
    from ..//..//..//..//Symbian//9.1//S60_3rd//EPOC32//include//stdapis//stlport/string:45,
    from ..\\src\\Testguiappview.cpp:13:
    ..\\..\\..\\..\\Symbian\\9.1\\S60_3rd\\EPOC32\\include\\stdapis\\stlport\cstddef(49): warning: `:trdiff_t' has not been declared
    ..\\..\\..\\..\\Symbian\\9.1\\S60_3rd\\EPOC32\\include\\stdapis\\stlport\cstddef(50): warning: `::size_t' has not been declared
    In file included from ..//..//..//..//Symbian//9.1//S60_3rd//EPOC32//include//stdapis//stlport/stl/_alloc.h:39,
    from ..//..//..//..//Symbian//9.1//S60_3rd//EPOC32//include//stdapis//stlport/memory:32,
    from ..//..//..//..//Symbian//9.1//S60_3rd//EPOC32//include//stdapis//stlport/stl/_string.h:25,
    from ..//..//..//..//Symbian//9.1//S60_3rd//EPOC32//include//stdapis//stlport/string:45,
    from ..\\src\\Testguiappview.cpp:13:
    ..\\..\\..\\..\\Symbian\\9.1\\S60_3rd\\EPOC32\\include\\stdapis\\stlport\cstdlib(48): warning: `::div_t' has not been declared
    ..\\..\\..\\..\\Symbian\\9.1\\S60_3rd\\EPOC32\\include\\stdapis\\stlport\cstdlib(49): warning: `::ldiv_t' has not been declared
    ..\\..\\..\\..\\Symbian\\9.1\\S60_3rd\\EPOC32\\include\\stdapis\\stlport\cstdlib(50): warning: `::size_t' has not been declared
    ..\\..\\..\\..\\Symbian\\9.1\\S60_3rd\\EPOC32\\include\\stdapis\\stlport\cstdlib(53): warning: `::abort' has not been declared
    ..\\..\\..\\..\\Symbian\\9.1\\S60_3rd\\EPOC32\\include\\stdapis\\stlport\cstdlib(54): warning: `::atexit' has not been declared
    ..\\..\\..\\..\\Symbian\\9.1\\S60_3rd\\EPOC32\\include\\stdapis\\stlport\cstdlib(55): warning: `::exit' has not been declared
    ..\\..\\..\\..\\Symbian\\9.1\\S60_3rd\\EPOC32\\include\\stdapis\\stlport\cstdlib(56): warning: `::getenv' has not been declared
    ..\\..\\..\\..\\Symbian\\9.1\\S60_3rd\\EPOC32\\include\\stdapis\\stlport\cstdlib(57): warning: `::calloc' has not been declared
    ..\\..\\..\\..\\Symbian\\9.1\\S60_3rd\\EPOC32\\include\\stdapis\\stlport\cstdlib(58): warning: `::free' has not been declared
    ..\\..\\..\\..\\Symbian\\9.1\\S60_3rd\\EPOC32\\include\\stdapis\\stlport\cstdlib(59): warning: `::malloc' has not been declared
    ..\\..\\..\\..\\Symbian\\9.1\\S60_3rd\\EPOC32\\include\\stdapis\\stlport\cstdlib(60): warning: `::realloc' has not been declared
    ..\\..\\..\\..\\Symbian\\9.1\\S60_3rd\\EPOC32\\include\\stdapis\\stlport\cstdlib(61): warning: `::atof' has not been declared
    ..\\..\\..\\..\\Symbian\\9.1\\S60_3rd\\EPOC32\\include\\stdapis\\stlport\cstdlib(62): warning: `::atoi' has not been declared
    ..\\..\\..\\..\\Symbian\\9.1\\S60_3rd\\EPOC32\\include\\stdapis\\stlport\cstdlib(63): warning: `::atol' has not been declared
    ..\\..\\..\\..\\Symbian\\9.1\\S60_3rd\\EPOC32\\include\\stdapis\\stlport\cstdlib(64): warning: `::mblen' has not been declared
    ..\\..\\..\\..\\Symbian\\9.1\\S60_3rd\\EPOC32\\include\\stdapis\\stlport\cstdlib(65): warning: `::mbstowcs' has not been declared
    ..\\..\\..\\..\\Symbian\\9.1\\S60_3rd\\EPOC32\\include\\stdapis\\stlport\cstdlib(66): warning: `::mbtowc' has not been declared
    ..\\..\\..\\..\\Symbian\\9.1\\S60_3rd\\EPOC32\\include\\stdapis\\stlport\cstdlib(67): warning: `::strtod' has not been declared
    ..\\..\\..\\..\\Symbian\\9.1\\S60_3rd\\EPOC32\\include\\stdapis\\stlport\cstdlib(68): warning: `::strtol' has not been declared
    ..\\..\\..\\..\\Symbian\\9.1\\S60_3rd\\EPOC32\\include\\stdapis\\stlport\cstdlib(69): warning: `::strtoul' has not been declared
    ..\\..\\..\\..\\Symbian\\9.1\\S60_3rd\\EPOC32\\include\\stdapis\\stlport\cstdlib(70): warning: `::system' has not been declared
    ..\\..\\..\\..\\Symbian\\9.1\\S60_3rd\\EPOC32\\include\\stdapis\\stlport\cstdlib(73): warning: `::wcstombs' has not been declared
    ..\\..\\..\\..\\Symbian\\9.1\\S60_3rd\\EPOC32\\include\\stdapis\\stlport\cstdlib(74): warning: `::wctomb' has not been declared
    ..\\..\\..\\..\\Symbian\\9.1\\S60_3rd\\EPOC32\\include\\stdapis\\stlport\cstdlib(76): warning: `::bsearch' has not been declared
    ..\\..\\..\\..\\Symbian\\9.1\\S60_3rd\\EPOC32\\include\\stdapis\\stlport\cstdlib(77): warning: `::qsort' has not been declared
    ..\\..\\..\\..\\Symbian\\9.1\\S60_3rd\\EPOC32\\include\\stdapis\\stlport\cstdlib(82): warning: `::div' has not been declared
    ..\\..\\..\\..\\Symbian\\9.1\\S60_3rd\\EPOC32\\include\\stdapis\\stlport\cstdlib(83): warning: `::labs' has not been declared
    ..\\..\\..\\..\\Symbian\\9.1\\S60_3rd\\EPOC32\\include\\stdapis\\stlport\cstdlib(84): warning: `::ldiv' has not been declared
    ..\\..\\..\\..\\Symbian\\9.1\\S60_3rd\\EPOC32\\include\\stdapis\\stlport\cstdlib(85): warning: `::rand' has not been declared
    ..\\..\\..\\..\\Symbian\\9.1\\S60_3rd\\EPOC32\\include\\stdapis\\stlport\cstdlib(86): warning: `::srand' has not been declared
    ..//..//..//..//Symbian//9.1//S60_3rd//EPOC32//include//stdapis//stlport/cstdlib: In function `long int std::abs(long int)':
    ..\\..\\..\\..\\Symbian\\9.1\\S60_3rd\\EPOC32\\include\\stdapis\\stlport\cstdlib(96): warning: `::abs' has not been declared
    ..//..//..//..//Symbian//9.1//S60_3rd//EPOC32//include//stdapis//stlport/cstdlib: At global scope:
    ..\\..\\..\\..\\Symbian\\9.1\\S60_3rd\\EPOC32\\include\\stdapis\\stlport\cstdlib(97): warning: `ldiv_t' does not name a type
    In file included from ..//..//..//..//Symbian//9.1//S60_3rd//EPOC32//include//stdapis//stlport/cstring:36,
    from ..//..//..//..//Symbian//9.1//S60_3rd//EPOC32//include//stdapis//stlport/stl/_alloc.h:42,
    from ..//..//..//..//Symbian//9.1//S60_3rd//EPOC32//include//stdapis//stlport/memory:32,
    from ..//..//..//..//Symbian//9.1//S60_3rd//EPOC32//include//stdapis//stlport/stl/_string.h:25,
    from ..//..//..//..//Symbian//9.1//S60_3rd//EPOC32//include//stdapis//stlport/string:45,
    Last edited by sajjad4joy; 2008-11-24 at 06:52.

  2. #2
    Registered User
    Join Date
    Dec 2006
    Posts
    2,280

    Re: string errors using stlport

    Hi,

    Add:
    SYSTEMINCLUDE \epoc32\include\stdapis\sys

    That should do it. It is in the Open C++ documentation.

    Sorcery

  3. #3
    Registered User
    Join Date
    Nov 2008
    Posts
    4

    Re: string errors using stlport

    Hi,

    Thanks a lot for the reply. I was able solve the complier errors by including sys but If I add the string includes in Static Library project, I'm getting the same errors again. I'm new to Symbian, so please help me regarding this. Do I need to add anything in a Static Library Project. I'm using Series 60 3rd Edition FP1.
    Once again, thanks.

    -Sajjad

  4. #4
    Registered User
    Join Date
    Nov 2008
    Posts
    4

    Re: string errors using stlport

    Hi,
    I'm able to solve it. The Order of library includes is very important. The Order should be this

    SYSTEMINCLUDE \epoc32\include
    SYSTEMINCLUDE \epoc32\include\stdapis
    SYSTEMINCLUDE \epoc32\include\stdapis\sys
    SYSTEMINCLUDE \epoc32\include\stdapis\stlport
    SYSTEMINCLUDE \epoc32\include\stdapis\stlport\stl

    Thanks pasquale for this Info.

    Sajjad.

Similar Threads

  1. Send string data from symbian to .net
    By ahlmans in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2008-01-16, 13:40
  2. Bluetooth Connection woes
    By GrahamKelly in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2007-12-02, 06:37
  3. TextEditor with two errors
    By ahashim in forum Personal Profile
    Replies: 0
    Last Post: 2006-08-29, 23:43
  4. Personal
    By JSmith77 in forum PersonalJava
    Replies: 4
    Last Post: 2003-07-30, 12:52
  5. D211 new linux driver 1.04 not working !!
    By franz_meyer in forum Multimodecards
    Replies: 1
    Last Post: 2002-12-12, 08:31

Posting Permissions

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