Thread: sstream & compiler proB

  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    142

    sstream & compiler proB

    i can't use the <sstream> header in my compiler, how do i add it so i can? where do i get it from?
    WhAtHA hell Is GoInG ON

  2. #2
    Registered User
    Join Date
    Jan 2007
    Posts
    8
    #include <sstream>

    If it's in the standard library that is. Put that before your main() function, near the top of the source file.

  3. #3
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,688
    What compiler are you using?
    Double Helix STL

  4. #4
    Moderately Rabid Decrypt's Avatar
    Join Date
    Feb 2005
    Location
    Milwaukee, WI, USA
    Posts
    300
    Like swgh implied, it probably wasn't included with your compiler. You're using Dev C++ 4, right? If so, and you want to continue using Dev-C++, get the v5 beta. Otherwise there are a number of free compilers that will include it such as Code::Blocks (*snipped bad info*), and VS Express is still free, I think...

    [edit]OK I mixed up IDE and compiler, too. oops^2[/edit]
    Last edited by Decrypt; 01-14-2007 at 03:20 PM.
    There is a difference between tedious and difficult.

  5. #5
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094
    Last I knew Code::Blocks was its own dev team and didn't have anything to do with bloodshed. Also Code::Blocks doesn't have any header files, you get those from the installed compiler, which most use MinGW with Code::Blocks.

  6. #6
    Moderately Rabid Decrypt's Avatar
    Join Date
    Feb 2005
    Location
    Milwaukee, WI, USA
    Posts
    300
    Oops, I had heard it was the same team...edited above post
    There is a difference between tedious and difficult.

  7. #7
    Registered User
    Join Date
    Sep 2005
    Posts
    142
    ok cheers, i new that dev 4 didn't include <sstream> but can you add headers to your I.D.E ?
    Last edited by wart101; 01-14-2007 at 10:33 PM.
    WhAtHA hell Is GoInG ON

  8. #8
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    Quote Originally Posted by wart101
    ok cheers, i new that dev 4 didn't include <sstream> but can you add headers to your I.D.E ?
    If the IDE doesn't come with any header files then you have to install mingw which is the collection of compilers and header files for c and c++.

  9. #9
    Registered User
    Join Date
    Sep 2005
    Posts
    142
    Quote Originally Posted by indigo0086
    If the IDE doesn't come with any header files then you have to install mingw which is the collection of compilers and header files for c and c++.

    it come with header file just not sstream, my question is can you add header files? from what i have been toold you can, is this true?
    WhAtHA hell Is GoInG ON

  10. #10
    MFC killed my cat! manutd's Avatar
    Join Date
    Sep 2006
    Location
    Boston, Massachusetts
    Posts
    870
    You shouldn't. See this.
    Silence is better than unmeaning words.
    - Pythagoras
    My blog

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. added start menu crashes game
    By avgprogamerjoe in forum Game Programming
    Replies: 6
    Last Post: 08-29-2007, 01:30 PM
  2. Compiler Paths...
    By Cobra in forum C++ Programming
    Replies: 5
    Last Post: 09-26-2006, 04:04 AM
  3. C Compiler and stuff
    By pal1ndr0me in forum C Programming
    Replies: 10
    Last Post: 07-21-2006, 11:07 AM
  4. I can't get this new compiler to work.
    By Loduwijk in forum C++ Programming
    Replies: 7
    Last Post: 03-29-2006, 06:42 AM
  5. how to call a compiler?
    By castlelight in forum C Programming
    Replies: 3
    Last Post: 11-22-2005, 11:28 AM