[Mingw-w64-public] linking issue with postgresql and curl

2013-08-06 Thread Michael Cronenworth
I'm attempting to build a project that uses both PostgreSQL (libpq.dll) and CuRL (libcurl.dll), but I have run into a issue when both are linked into the same executable. I have a simple test case that I am attaching that demonstrates the problem. The resulting binary will not run. Windows or Wine

Re: [Mingw-w64-public] linking issue with postgresql and curl

2013-08-08 Thread Michael Cronenworth
On 08/06/2013 05:12 PM, Michael Cronenworth wrote: > I'm attempting to build a project that uses both PostgreSQL (libpq.dll) and > CuRL > (libcurl.dll), but I have run into a issue when both are linked into the same > executable. I have a simple test case that I am attaching that demonstrates > t

Re: [Mingw-w64-public] linking issue with postgresql and curl

2013-08-08 Thread Kai Tietz
Hmm, not necessarily a gcc bug. It might be simply that the dll itself has dependencies to other dll-files. Try to check by dependency-walker tool, or via the objdump tool, what other DLL-files might be referenced. Most likely it is an issue about libgcc.dll file. Regards, Kai -

Re: [Mingw-w64-public] linking issue with postgresql and curl

2013-08-10 Thread Erik van Pienbroek
Kai Tietz schreef op do 08-08-2013 om 15:49 [+0200]: > Hmm, not necessarily a gcc bug. It might be simply that the dll > itself has dependencies to other dll-files. > Try to check by dependency-walker tool, or via the objdump tool, what > other DLL-files might be referenced. > > Most likely it is