473,385 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

fatal error C1189: #error : "No sstream/strstream implementation"

Hi,
I am trying to build a static library, while building the library i am
getting the following error:

fatal error C1189: #error : "No sstream/strstream implementation"

Following is the code that is giving error:

#ifdef HAVE_CONFIG_H

# include <config.h>

#endif

#ifdef HAVE_SSTREAM

# include <sstream>

#elif HAVE_STRSTREAM

# define USE_STRSTREAM_WRAPPERS

#else

# error "No sstream/strstream implementation"

#endif

#if defined(USE_STRSTREAM_WRAPPERS) && !defined(SSTREAM_FIX_H)

#define SSTREAM_FIX_H

#include <string>

#include <strstream>

namespace std

{

/*

* Only limited functionality from ostringstream

* is implemented

*/

class ostringstream : public ostrstream {

public:

string str() {

char *cstr = ostrstream::str();

freeze(0);

if (cstr == 0) return string();

return string(cstr,pcount());

}

};

/*

* Only limited functionality from istringstream

* is implemented

*/

class istringstream : public istrstream {

public:

istringstream(const string& str)

: istrstream(str.c_str()) { }

};

}

#endif

If anyone has a solution for this please let me know.

Thanks,

Praveen.


May 22 '06 #1
2 2681
> I am trying to build a static library, while building the library i am
getting the following error:

fatal error C1189: #error : "No sstream/strstream implementation"

Following is the code that is giving error:

#ifdef HAVE_CONFIG_H

# include <config.h>

#endif

#ifdef HAVE_SSTREAM

# include <sstream>

#elif HAVE_STRSTREAM

# define USE_STRSTREAM_WRAPPERS

#else

# error "No sstream/strstream implementation"

#endif


did you define the appropriate macros? if so what did you define?
because the code clearly specifies that the error has to be generated if
none of the correct macros have been defined.
--

Kind regards,
Bruno van Dooren
br**********************@hotmail.com
Remove only "_nos_pam"
May 22 '06 #2
> I am trying to build a static library, while building the library i am
getting the following error:

fatal error C1189: #error : "No sstream/strstream implementation"

Following is the code that is giving error:


It's clear! Neither HAVE_SSTREAM nor HAVE_STRSTREAM is defined. :-)
--
Vladimir Nesterovsky
May 22 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: Tobiah | last post by:
Ok, I miss the idiom that my other languages use, something like: while( foo = getmore()){ process(foo); }
134
by: James A. Donald | last post by:
I am contemplating getting into Python, which is used by engineers I admire - google and Bram Cohen, but was horrified to read "no variable or argument declarations are necessary." Surely that...
1
by: Phil Sandler | last post by:
Hello all, Thanks in advance for any help with this. I am trying to get sample code to run from Michael Russell's excellent article on removing whitespace:...
5
by: Martin Jørgensen | last post by:
Hello again, Sorry to bother but I guess my C++ book isn't very good since it obviously contains errors so the program code doesn't work with g++. However I don't understand what the problem...
2
by: Chris | last post by:
Hi, I want to show the whole recordset. There are 42 records and 2 fields. .... comd = New System.Data.OleDb.OleDbCommand("select name,lok from pc", oConnection) dtreader = comd.ExecuteReader...
3
by: uday.sen | last post by:
Hi, I am porting a piece of code from VC++ to linux platform. My compiler is g++ 3.2.2. I am getting following error: no matching function for call to A::setResponse(std::wstring) candidates...
8
by: rssd | last post by:
can somebody help me. I'm trying to read some excel files but i'm always getting this error No type library matching "Microsoft Excel" found at D:\Genes_datasets\exp.pl line 4 Win32::OLE(0.16):...
0
by: Gwen Crutcher | last post by:
I keep getting the error "No value given for one or more required parameters", but not sure why. Can anyone please look at my code snipet and see if you see any reason why I could be getting this...
1
by: webtourist | last post by:
Warning: New learner here Not sure what the term means "implementation of Python". So what exactly does it mean *"implementation of Python"* like cpython, Jython, IronPython ????? In terms of...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.