On Sun, 20 Dec 2009, Lorenzo Fiorini wrote: Hi,
> Creating my apps under Win using mingw/msys and postgresql 8.4.2 I get: > Info: resolving _PQisnonblocking by linking to __imp__PQisnonblocking > (auto-import) > c:/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: > warning: auto-importing has been activated without > --enable-auto-import specified on the command line. Your postgresql dynamic library has been compiled without even single exported symbol. In such case (nothing is exported) MinGW decides that it was programmer mistake and activates "online" exporting of all public symbols in the library (auto-import option). > This should work unless it involves constant data structures referencing > symbols > from auto-imported DLLs. To be more precise unless some structures are not accessed with internal offset calculated at compile time because for such situations it's necessary to generate different ASM code. > The same build works in Linux and OSX. Neither Linux nor OSX use export/import symbol status :-( > I can't find a clean way to fix it. You have to use postgresql DLL compiled with exported symbols or import library which will "hide" the real status of symbols or simply ignore above warning. > Is it safe to add --enable-auto-import to hb-mkdyn? If you do not want to know that you are using DLLs without exported symbols then you can use it to pacify above warning. best regards, Przemek _______________________________________________ Harbour mailing list (attachment size limit: 40KB) [email protected] http://lists.harbour-project.org/mailman/listinfo/harbour
