×

Discussion Board

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

    Bug: stl header <locale> missing guards

    I think an include guard is missing from the stlport files.

    Don't know if it's an stlport or symbian issue.

    Using S60_3rd_FP2_SDK_v1.1 with the C++ plugin, this code:

    Code:
    #include <vector>
    #include <locale>
    gives this message:

    Code:
    C:\S60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\include\stdapis\stlport\stl\_limits.h:296: class 'std::numeric_limits<unsigned short>' redefined
    C:\S60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\include\stdapis\stlport\stl\_limits.h:296: (included from:
    C:\S60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\include\stdapis\stlport\stl\_limits.h:296:   C:\S60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\include\stdapis\stlport\stl\_num_put.c:30
    C:\S60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\include\stdapis\stlport\stl\_limits.h:296:   C:\S60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\include\stdapis\stlport\stl\_num_put.h:194
    C:\S60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\include\stdapis\stlport\stl\_limits.h:296:   C:\S60\devices\S60_3rd_FP2_SDK_v1.1\epoc32\include\stdapis\stlport\locale:50
    Outcommenting
    Code:
    //#include <locale>
    fixes it and stl::locale is available, but the header guards should be fixed.

    Or did I mess up my setup?

    From the MMP:

    Code:
    TARGET		  something.lib
    TARGETTYPE	  lib
    UID			 0
    
    SYSTEMINCLUDE   \epoc32\include
    SYSTEMINCLUDE   \epoc32\include\stdapis
    SYSTEMINCLUDE   \epoc32\include\stdapis\sys
    SYSTEMINCLUDE   \epoc32\include\stdapis\stlport
    SYSTEMINCLUDE   \epoc32\include\stdapis\stlport\stl
    
    #ifdef ENABLE_ABIV2_MODE
    DEBUGGABLE
    #endif
    SOURCEPATH ..
    SOURCE something.cpp
    
    EXPORTUNFROZEN
    
    SOURCEPATH ..
    SOURCE datamodel.cpp

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,567

    Re: Bug: stl header <locale> missing guards

    Though I have no FP2 SDK, both the downloadable-installable plugin for MR, and the built-in PIPS in 5th contains the guards:
    Quote Originally Posted by epoc32\include\stdapis\stlport\locale
    ... comments ...
    #ifndef _STLP_LOCALE
    #define _STLP_LOCALE
    Also note that the error message is about _limits.h actually... And it also contains the guards.

Similar Threads

  1. Recording in Amr Format
    By losym in forum Symbian Media (Closed)
    Replies: 12
    Last Post: 2009-03-26, 06:41
  2. carbide-error
    By upendersolanki in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 5
    Last Post: 2008-02-06, 11:09
  3. S60 2nd to 3rd/ PlatformSecurity / Capabilities
    By jarkoos in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 4
    Last Post: 2007-04-14, 14:08
  4. 302 redirection response header missing
    By morost in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2007-03-30, 16:24
  5. MMS SDK : missing transaction id header
    By vincent.czerniak in forum General Messaging
    Replies: 1
    Last Post: 2006-01-27, 07:53

Posting Permissions

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