×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jul 2006
    Posts
    8

    Build error: Redeclaration of c++ built-in type 'wchar_t'

    In my project settings, i didn't choose 'wchar_t' as a build in type. Then
    in the code, i define:

    #ifndef _WCHAR_T
    #define TUint16 wchar_t
    #endif

    Then I get the error while doing the gcce build:

    > abld build gcce

    Error: Redeclaration of c++ build-in type 'wchar_t'

    Can anybody tell me how to solve the problem? Thanks.

  2. #2
    Regular Contributor
    Join Date
    May 2007
    Posts
    463

    Re: Build error: Redeclaration of c++ built-in type 'wchar_t'

    Presumably you're porting an autoconf app here, rather than writing new code?

    wchar_t is a built in type, so you need to define _WCHAR_T in your config.h.
    Get Resolvr - The Zeroconf framework for Symbian OS free today. Make your IP networking applications fun and easy to use. http://www.novelinteractions.com/resolvr/
    Proud to be the only autorickshaw owner in Cambridge - http://blog.novelinteractions.com/images/tuktuk.jpg

  3. #3
    Registered User
    Join Date
    Jul 2006
    Posts
    8

    Re: Build error: Redeclaration of c++ built-in type 'wchar_t'

    The thing is I don't want to treat wchar_t as built-in type. If I put 'define _wchar_t' in my code, there will be compiler error like "Undefined variable ".

Similar Threads

  1. Recording in Amr Format
    By losym in forum Symbian Media (Closed)
    Replies: 12
    Last Post: 2009-03-26, 06:41
  2. Linux driver in RedHat 7.3
    By nsolhjoo in forum Multimodecards
    Replies: 0
    Last Post: 2003-10-24, 17:04
  3. D211 with RH7.3
    By fiveam in forum Multimodecards
    Replies: 3
    Last Post: 2003-02-24, 09:06
  4. D211 : Compiling the user interface for Linux...?
    By franz_meyer in forum Multimodecards
    Replies: 1
    Last Post: 2002-12-09, 11:48
  5. Problem with Nokia D211 Linux Drivers
    By fiveam in forum Multimodecards
    Replies: 1
    Last Post: 1970-01-01, 02:00

Posting Permissions

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