From: "John Harrison" Newsgroups: comp.lang.c++,comp.os.msdos.djgpp References: <4j%t5.6782$vo6 DOT 96767 AT news2-win DOT server DOT ntlworld DOT com> Subject: Re: passing istringstream as istream in param Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Message-ID: Date: Fri, 8 Sep 2000 08:33:51 +0100 NNTP-Posting-Host: 213.104.54.85 X-Complaints-To: abuse AT ntlworld DOT com X-Trace: news2-win.server.ntlworld.com 968398450 213.104.54.85 (Fri, 08 Sep 2000 08:34:10 BST) NNTP-Posting-Date: Fri, 08 Sep 2000 08:34:10 BST Organization: ntlworld News Service To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Mostyn Lee" wrote in message news:UX%t5.105$t42 DOT 4862 AT nsw DOT nnrp DOT telstra DOT net... > thanks john, but i think you misunderstand my problem, which is not with the > generated code, merely with the interface to that code. I cant get my > character string in the form of istream * for the lexer to do its parse. > Well I'm pretty sure that somewhere you are mixing up which defines a class called istream and which defines a different class called std::basic_istream> and a typedef std::istream. After all you said that trying to declare an istream results in an ambiguous symbol error, and your error message indicates that you have a class called istream (which can only happen if you are including ) somewhere in your program. Basically there is nothing wrong with the code you have posted and the only explaination I can think of is that you have included both the and headers somewhere. The confusing thing is that they both define a symbol called istream. john