On Sat, Aug 25, 2001 at 08:15:45PM -0400, Bruce Momjian wrote: > Can someone research this and figure out what the proper solution for > this is?  Seems we are going around in circles if we keep > adding/removing DLLIMPORT.
On Sat, Aug 25, 2001 at 08:15:45PM -0400, Bruce Momjian wrote:
> Can someone research this and figure out what the proper solution for
> this is?  Seems we are going around in circles if we keep
> adding/removing DLLIMPORT.

I believe that the attached patch is the correct solution --  I apologize
for the gyrations.  With the attached patch, Cygwin libpq++ builds
cleanly again.  The root cause was that DLLIMPORT was defaulting to
__declspec(dllimport) since BUILDING_DLL was *not* defined when building
the libpq++ DLL.

Unfortunately, to test my patch requires changing the following makefile:

    src/interfaces/libpq++/examples/Makefile

and the #includes in all of the *.cc to build against the source tree
instead of the following hardcoded installation directory structure:

    /usr/local/pgsql

I was able to manually build

    src/interfaces/libpq++/examples/testlibpq0.exe

against my Cygwin libpq++ without errors.  However, I have not tried to
actually test testlibpq0.exe.

Is this sufficient?  Or, do you want me to clean up libpq++/examples too?
(Or, is it silly to even ask? :,))  Let me know how you want to proceed and
I will submit a patch to pgsql-patches.

Jason Tishler

ahachete/gpdb,tpostgres-projects/tPostgres,yuanzhao/gpdb,ovr/postgres-xl,Postgres-XL/Postgres-XL,tangp3/gpdb,janebeckman/gpdb,kaknikhil/gpdb,Quikling/gpdb,0x0FFF/gpdb,Chibin/gpdb,rvs/gpdb,ashwinstar/gpdb,kaknikhil/gpdb,Chibin/gpdb,rvs/gpdb,zeroae/postgres-xl,Quikling/gpdb,50wu/gpdb,Chibin/gpdb,50wu/gpdb,xinzweb/gpdb,oberstet/postgres-xl,Quikling/gpdb,oberstet/postgres-xl,edespino/gpdb,zaksoup/gpdb,xuegang/gpdb,yazun/postgres-xl,xinzweb/gpdb,royc1/gpdb,ahachete/gpdb,chrishajas/gpdb,50wu/gpdb,tangp3/gpdb,postmind-net/postgres-xl,0x0FFF/gpdb,CraigHarris/gpdb,zaksoup/gpdb,yuanzhao/gpdb,edespino/gpdb,Quikling/gpdb,ahachete/gpdb,arcivanov/postgres-xl,janebeckman/gpdb,kaknikhil/gpdb,50wu/gpdb,0x0FFF/gpdb,edespino/gpdb,xuegang/gpdb,arcivanov/postgres-xl,rvs/gpdb,lisakowen/gpdb,tangp3/gpdb,tangp3/gpdb,lisakowen/gpdb,rubikloud/gpdb,lpetrov-pivotal/gpdb,yuanzhao/gpdb,janebeckman/gpdb,Postgres-XL/Postgres-XL,kaknikhil/gpdb,greenplum-db/gpdb,royc1/gpdb,lintzc/gpdb,ahachete/gpdb,royc1/gpdb,edespino/gpdb,rubikloud/gpdb,rubikloud/gpdb,ashwinstar/gpdb,adam8157/gpdb,Chibin/gpdb,ashwinstar/gpdb,royc1/gpdb,pavanvd/postgres-xl,rvs/gpdb,ahachete/gpdb,cjcjameson/gpdb,ovr/postgres-xl,Postgres-XL/Postgres-XL,chrishajas/gpdb,yuanzhao/gpdb,jmcatamney/gpdb,xuegang/gpdb,foyzur/gpdb,chrishajas/gpdb,xuegang/gpdb,lisakowen/gpdb,tpostgres-projects/tPostgres,Quikling/gpdb,lintzc/gpdb,CraigHarris/gpdb,jmcatamney/gpdb,randomtask1155/gpdb,lpetrov-pivotal/gpdb,yazun/postgres-xl,chrishajas/gpdb,postmind-net/postgres-xl,techdragon/Postgres-XL,CraigHarris/gpdb,royc1/gpdb,atris/gpdb,rvs/gpdb,ashwinstar/gpdb,Postgres-XL/Postgres-XL,pavanvd/postgres-xl,ashwinstar/gpdb,cjcjameson/gpdb,kaknikhil/gpdb,edespino/gpdb,ahachete/gpdb,rubikloud/gpdb,kaknikhil/gpdb,xinzweb/gpdb,kaknikhil/gpdb,rubikloud/gpdb,postmind-net/postgres-xl,ahachete/gpdb,royc1/gpdb,foyzur/gpdb,yuanzhao/gpdb,zaksoup/gpdb,xinzweb/gpdb,chrishajas/gpdb,Chibin/gpdb,lpetrov-pivotal/gpdb,jmcatamney/gpdb,Chibin/gpdb,edespino/gpdb,edespino/gpdb,kaknikhil/gpdb,postmind-net/postgres-xl,50wu/gpdb,lpetrov-pivotal/gpdb,greenplum-db/gpdb,adam8157/gpdb,royc1/gpdb,Quikling/gpdb,xuegang/gpdb,Postgres-XL/Postgres-XL,atris/gpdb,xinzweb/gpdb,CraigHarris/gpdb,zaksoup/gpdb,rubikloud/gpdb,oberstet/postgres-xl,cjcjameson/gpdb,techdragon/Postgres-XL,CraigHarris/gpdb,CraigHarris/gpdb,Quikling/gpdb,CraigHarris/gpdb,janebeckman/gpdb,lintzc/gpdb,rubikloud/gpdb,Quikling/gpdb,snaga/postgres-xl,randomtask1155/gpdb,zeroae/postgres-xl,lintzc/gpdb,zaksoup/gpdb,kmjungersen/PostgresXL,lintzc/gpdb,adam8157/gpdb,cjcjameson/gpdb,janebeckman/gpdb,atris/gpdb,kaknikhil/gpdb,postmind-net/postgres-xl,tpostgres-projects/tPostgres,randomtask1155/gpdb,foyzur/gpdb,rvs/gpdb,cjcjameson/gpdb,cjcjameson/gpdb,foyzur/gpdb,jmcatamney/gpdb,oberstet/postgres-xl,adam8157/gpdb,rvs/gpdb,lpetrov-pivotal/gpdb,yazun/postgres-xl,atris/gpdb,foyzur/gpdb,tangp3/gpdb,zeroae/postgres-xl,rvs/gpdb,foyzur/gpdb,chrishajas/gpdb,adam8157/gpdb,ahachete/gpdb,edespino/gpdb,cjcjameson/gpdb,atris/gpdb,oberstet/postgres-xl,CraigHarris/gpdb,greenplum-db/gpdb,lisakowen/gpdb,foyzur/gpdb,techdragon/Postgres-XL,pavanvd/postgres-xl,chrishajas/gpdb,janebeckman/gpdb,janebeckman/gpdb,zaksoup/gpdb,0x0FFF/gpdb,50wu/gpdb,yazun/postgres-xl,lpetrov-pivotal/gpdb,tangp3/gpdb,cjcjameson/gpdb,techdragon/Postgres-XL,snaga/postgres-xl,lisakowen/gpdb,Chibin/gpdb,ashwinstar/gpdb,adam8157/gpdb,randomtask1155/gpdb,atris/gpdb,foyzur/gpdb,xuegang/gpdb,randomtask1155/gpdb,tpostgres-projects/tPostgres,Chibin/gpdb,tangp3/gpdb,kmjungersen/PostgresXL,kmjungersen/PostgresXL,yazun/postgres-xl,zaksoup/gpdb,pavanvd/postgres-xl,ashwinstar/gpdb,randomtask1155/gpdb,snaga/postgres-xl,ashwinstar/gpdb,arcivanov/postgres-xl,rubikloud/gpdb,50wu/gpdb,lintzc/gpdb,cjcjameson/gpdb,zeroae/postgres-xl,lintzc/gpdb,edespino/gpdb,arcivanov/postgres-xl,0x0FFF/gpdb,xuegang/gpdb,yuanzhao/gpdb,edespino/gpdb,snaga/postgres-xl,ovr/postgres-xl,lisakowen/gpdb,kaknikhil/gpdb,janebeckman/gpdb,greenplum-db/gpdb,tpostgres-projects/tPostgres,adam8157/gpdb,greenplum-db/gpdb,0x0FFF/gpdb,jmcatamney/gpdb,kmjungersen/PostgresXL,tangp3/gpdb,atris/gpdb,arcivanov/postgres-xl,CraigHarris/gpdb,jmcatamney/gpdb,randomtask1155/gpdb,greenplum-db/gpdb,zaksoup/gpdb,adam8157/gpdb,jmcatamney/gpdb,yuanzhao/gpdb,0x0FFF/gpdb,xinzweb/gpdb,atris/gpdb,janebeckman/gpdb,zeroae/postgres-xl,arcivanov/postgres-xl,cjcjameson/gpdb,greenplum-db/gpdb,ovr/postgres-xl,yuanzhao/gpdb,ovr/postgres-xl,greenplum-db/gpdb,lintzc/gpdb,rvs/gpdb,lpetrov-pivotal/gpdb,royc1/gpdb,lpetrov-pivotal/gpdb,janebeckman/gpdb,Chibin/gpdb,Quikling/gpdb,yuanzhao/gpdb,lisakowen/gpdb,yuanzhao/gpdb,techdragon/Postgres-XL,Chibin/gpdb,snaga/postgres-xl,kmjungersen/PostgresXL,50wu/gpdb,xuegang/gpdb,0x0FFF/gpdb,pavanvd/postgres-xl,randomtask1155/gpdb,Quikling/gpdb,jmcatamney/gpdb,chrishajas/gpdb,xinzweb/gpdb,rvs/gpdb,lisakowen/gpdb,xinzweb/gpdb,xuegang/gpdb,lintzc/gpdb