472,952 Members | 1,864 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,952 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 2653
> 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: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...

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.