wcout

This is a discussion on wcout within the C++ Programming forums, part of the General Programming Boards category; Does anyone have a clue how to use wcout with Code::Blocks? I've tried including iostream, saying extern wostream wcout, everything ...

  1. #1
    MFC killed my cat! manutd's Avatar
    Join Date
    Sep 2006
    Location
    Boston, Massachusetts
    Posts
    870

    wcout

    Does anyone have a clue how to use wcout with Code::Blocks? I've tried including iostream, saying extern wostream wcout, everything I've seen suggested, nothing worked. Any ideas
    Silence is better than unmeaning words.
    - Pythagoras
    My blog

  2. #2
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,479
    Does the compiler say it is undeclared? I gather code::blocks uses the same compiler as Dev, so if you were able to use it on mingw then it should in theory work on code::blocks too.
    You might have more luck in the cb website.
    I'm just trying to be a better person - My Name Is Earl

  3. #3
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    MinGW (assuming that's the compiler your using) currently has very little wide character support - std::wstring is about its full extent.

    The solution is to use a third party library which does, such as stlport.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  4. #4
    MFC killed my cat! manutd's Avatar
    Join Date
    Sep 2006
    Location
    Boston, Massachusetts
    Posts
    870
    Does boost have anything (and yes, I'm using MinGW, on Win XP)?
    Silence is better than unmeaning words.
    - Pythagoras
    My blog

  5. #5
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    No, Boost has nothing. It expects a proper standard library.

    Again: the answer is STLPort.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. question about wchar_t, wcout, charset, unicode
    By sept in forum C++ Programming
    Replies: 2
    Last Post: 10-14-2007, 11:56 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21