By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,260 Members | 1,305 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,260 IT Pros & Developers. It's quick & easy.

problem in build with aCC when <sstream> is included in the code

P: 1
Hi,

I am getting build error when I used aCC compiler for compiling C++ code with <sstream>
I don't know what is missing here. Should I have to link any standard libraries / Include PATH?


I am getting following error:
Include file <sstream> not found.

when I tried to include "using namespace std;" I am getting following errors
Error 112: "sample.cpp", line 2 # Include file <sstream> not found.
#include <sstream>
^^^^^^^^^
Error 697: "sample.cpp", line 3 # Only namespace names are valid here.
using namespace std;
^^^
Expand|Select|Wrap|Line Numbers
  1. #include "singleton.h"
  2. #include <sstream>
  3. using namespace std;
  4.  
  5. singleton* singleton :: _instance = NULL;
  6. #define LOG     singleton :: Instance() -> display()
  7.  
  8. int main() {
  9.  
  10.  
  11.    LOG;
  12.  
  13.    LOG;
  14.    LOG;
  15.  
  16.    cout << x << endl;
  17.  
  18.    return 0 ;
  19. }
  20.  
Thanks
Gowri
Mar 23 '07 #1
Share this Question
Share on Google+
1 Reply


Expert 100+
P: 1,510
never come across a standard C++ header file called <sstream> - there is a <strstream>
also to use cout you need <iostream>
Mar 23 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.