Commit 8fc0aa4c authored by Bruce Momjian's avatar Bruce Momjian

Clarify causes of possible mismatch between Win32 libraries and

applications that use FILE pointers.
parent 165565cd
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/ecpg.sgml,v 1.67 2005/09/25 03:12:13 momjian Exp $ $PostgreSQL: pgsql/doc/src/sgml/ecpg.sgml,v 1.68 2005/10/13 17:46:18 momjian Exp $
--> -->
<chapter id="ecpg"> <chapter id="ecpg">
...@@ -1612,7 +1612,9 @@ ECPG = ecpg ...@@ -1612,7 +1612,9 @@ ECPG = ecpg
On Win32, if the <application>ecpg</> libraries and an application are On Win32, if the <application>ecpg</> libraries and an application are
compiled with different flags, this function call will crash the compiled with different flags, this function call will crash the
application because the internal representation of the application because the internal representation of the
<literal>FILE</> pointers differ. <literal>FILE</> pointers differ. Specifically,
threading/non-threading, release/debug, and static/dynamic flags should
be the same for the library and all applications using that library.
</para> </para>
</note> </note>
</listitem> </listitem>
......
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.191 2005/09/25 03:12:13 momjian Exp $ $PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.192 2005/10/13 17:46:18 momjian Exp $
--> -->
<chapter id="libpq"> <chapter id="libpq">
...@@ -3520,7 +3520,9 @@ void PQtrace(PGconn *conn, FILE *stream); ...@@ -3520,7 +3520,9 @@ void PQtrace(PGconn *conn, FILE *stream);
On Win32, if the <application>libpq</> library and an application are On Win32, if the <application>libpq</> library and an application are
compiled with different flags, this function call will crash the compiled with different flags, this function call will crash the
application because the internal representation of the <literal>FILE</> application because the internal representation of the <literal>FILE</>
pointers differ. pointers differ. Specifically, threading/non-threading, release/debug, and
static/dynamic flags should be the same for the library and all applications
using that library.
</para> </para>
</note> </note>
</listitem> </listitem>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment