Re: FastCGI with std::stringstream

Santosh Mankar <[email protected]> Mon, 22 Jul 2013 17:54:29 +0530
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <CAFGhAsqaWZXiR9wC-7rP4-GRwkuS=U3aQykKZdewxsnC0tTf+Q@mail.gmail.com>
--===============0251011867565971812==
Content-Type: multipart/alternative; boundary=089e013cc02612aae104e218c2d6

--089e013cc02612aae104e218c2d6
Content-Type: text/plain; charset=ISO-8859-1

Can you send your compilation instructions?

On Sat, Jul 20, 2013 at 1:12 AM, Neil Rao <[email protected]> wrote:

>  Hello,
>
> It seems I cannot use FastCGI and stringstream in the same project,
> despite the examples.
>
> The moment I include the following:
>
>  #include "fcgio.h"
> #include "fcgi_config.h"
>
> I get the following error:
>
>  error LNK2001: unresolved external symbol "__declspec(dllimport) public:
> class std::basic_istream<char,struct std::char_traits<char> > & __thiscall
> std::basic_istream<char,struct std::char_traits<char>
> >::seekg(__int64,int)" (__imp_?seekg@?$basic_istream@DU?$char_traits@D
> @std@@@std@@QAEAAV12@_JH@Z
>
>
> I also have the following other headers (could something be conflicting?):
>
>  #include <string>
> #include <curl/curl.h>
> #include <mimetic.h> // a free mime library
> #include <sstream>
>
>
> This is my code:
>
>  std::stringstream ss;
> ss << somedata;
> ss.seekg(0, std::ios::end); // error here, along with tellg() and read()
>
>
> I'd appreciate any advice that will point me in the right direction.
>
>
> Thank you,
>
> Neil
>
> _______________________________________________
> FastCGI-developers mailing list
> FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org
> http://mailman.fastcgi.com/mailman/listinfo/fastcgi-developers
>
>

--089e013cc02612aae104e218c2d6
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Can you send your compilation instructions?<br><br>
<div class=3D"gmail_quote">On Sat, Jul 20, 2013 at 1:12 AM, Neil Rao <span =
dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]" target=3D"_blank">ne=
[email protected]</a>&gt;</span> wrote:<br>
<blockquote style=3D"BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PA=
DDING-LEFT:1ex" class=3D"gmail_quote">
<div dir=3D"ltr">
<div>Hello,</div>
<div><br></div>It seems I cannot use FastCGI and stringstream in the same p=
roject, despite the examples.=20
<div><br></div>
<div>The moment I include the following:</div>
<div><br></div>
<div>
<div>#include &quot;fcgio.h&quot;</div>
<div>#include &quot;fcgi_config.h&quot;</div>
<div><br></div>
<div>I get the following error:</div>
<div><br></div>
<div>
<div>error LNK2001: unresolved external symbol &quot;__declspec(dllimport) =
public: class std::basic_istream&lt;char,struct std::char_traits&lt;char&gt=
; &gt; &amp; __thiscall std::basic_istream&lt;char,struct std::char_traits&=
lt;char&gt; &gt;::seekg(__int64,int)&quot; (__imp_?seekg@?$basic_istream@DU=
?$char_traits@D@std@@@std@@QAEAAV12@_JH@Z<br>
</div></div>
<div><br></div>
<div><br></div>
<div>I also have the following other headers (could something be conflictin=
g?):</div>
<div><br></div>
<div>
<div>#include &lt;string&gt;</div>
<div>#include &lt;curl/curl.h&gt;</div>
<div>#include &lt;mimetic.h&gt; // a free mime library</div>
<div>#include &lt;sstream&gt;</div>
<div><br></div>
<div><br></div>
<div>This is my code:</div>
<div><br></div>
<div>
<div>std::stringstream ss;</div>
<div>ss &lt;&lt; somedata;<br></div>
<div>ss.seekg(0, std::ios::end); // error here, along with tellg() and read=
()</div>
<div><br></div>
<div><br></div>
<div>I&#39;d appreciate any advice that will point me in the right directio=
n.</div>
<div><br></div>
<div><br></div>
<div>Thank you,</div>
<div><br></div>
<div>Neil</div></div></div></div></div><br>________________________________=
_______________<br>FastCGI-developers mailing list<br><a href=3D"mailto:Fas=
tCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org">FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org=
</a><br>
<a href=3D"http://mailman.fastcgi.com/mailman/listinfo/fastcgi-developers" =
target=3D"_blank">http://mailman.fastcgi.com/mailman/listinfo/fastcgi-devel=
opers</a><br><br></blockquote></div><br>

--089e013cc02612aae104e218c2d6--

--===============0251011867565971812==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
FastCGI-developers mailing list
FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org
http://mailman.fastcgi.com/mailman/listinfo/fastcgi-developers

--===============0251011867565971812==--