Thread: wcout

  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,688
    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.
    Double Helix STL

  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,895
    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, 10:56 AM