|
From: Markus H. <mar...@mh...> - 2008-09-08 15:55:23
|
Quoting Jordi Allue Cabellos <ja...@gr...>: > > Hello, > > We are developing an application in Visual studio that need acces to > PostgreSQL and SQLite. It would be nice to use your library in the > project. We have the compiled cygwin version but we don't have an > import library to use this dll from VS. > To solve this we've tried to recompile the library with VS. > To succesfully compile we applyed the following changes: > > 1.- Uint -> unsigned int > 2.- remove unistd.h > 3.- Add copy dll functions from __MINGW32__ section to a new > VisualStudio section. > 4.- remove dirent.h > 5.- # define __attribute__(x) /*NOTHING*/ to remove gcc specific > error checking. > 6.- use Windows filesystem interface for dbi_initialize. > 7.- #define __func__ __FUNCTION__ > > Is there any interest to include this in libdbi? > Hi, before including MSVC-specific changes I'd like to find out whether MinGW provides a library which is sufficient to link MSVC projects against. If not, the required changes can be applied to libdbi. However, we'd need a clean patch which provides the necessary changes without breaking other OSes. If you can provide such a patch, I'll be happy to review it and test it on other platforms. regards, Markus -- Markus Hoenicka mar...@ca... (Spam-protected email: replace the quadrupeds with "mhoenicka") http://www.mhoenicka.de |