Re: Libpq.dll: File not recognized - Mailing list pgsql-bugs

From Bidski
Subject Re: Libpq.dll: File not recognized
Date
Msg-id FD2431BC943142DDBCF00DE9125A70B8@Panda
Whole thread Raw
In response to Re: Libpq.dll: File not recognized  (Dave Page <dpage@pgadmin.org>)
Responses Re: Libpq.dll: File not recognized  (Dave Page <dpage@pgadmin.org>)
List pgsql-bugs
"Dave Page" <dpage@pgadmin.org> writes:
> Don't link against the DLL, link against the .lib.

Isnt the .lib the static library and the dll the shared library? And Im not
linking against the dll specifically, that is the library that g++ is
wanting to link to. My link command is

    g++ -Wl,--enable-auto-import -o"MRP.exe"  ./src/DB.o ./src/catlist.o
./src/inventory.o ./src/mrp_app.o ./src/mrp_frame.o
 ./res/resources.rc.o -lpq -L"C:\MinGW\lib" -L"C:\Program
Files\PostgreSQL\lib" -mwindows `wx-config --libs base,core,adv,xrc`

> The server is built with VC++ 2008 - I have no idea if Mingw can use
> 64bit VC++ libraries.

I also have no idea for certain, but I should think so. My understanding of
the whole thing is that a DLL made for windows should be linkable to any
windows application regardless of compiler/linker, if its not then what is
the point?

Regards
Bidski

pgsql-bugs by date:

Previous
From: Dave Page
Date:
Subject: Re: Libpq.dll: File not recognized
Next
From: Dave Page
Date:
Subject: Re: Libpq.dll: File not recognized