Re: Success in compiling FreeTDS.dll + dblib.dll using Dev-C++/Mingw.. this is how
Frediano Ziglio <[email protected]>
| Newsgroups | gmane.comp.db.tds.freetds |
|---|---|
| Message-ID | <[email protected]> |
2009/3/12 Gal Rubinstein <[email protected]>: > just wanted you all to know that I was able to overcome the noobie challenge > of creating dblib.dll > using Dev-C++, here is how: > > > 1. the FreeTDS comes with a dev-c++ project that uses the > \freetds\win32\FreeTDS.def file for export, but the file is missing more > then a few symbols, such as: tdsdump_log, tds_strlcpy, tds_set_bulk, > vasprintf, etc. so I added them and rebuilded... the only thing that is > bothering is that the are alot of warning on compile time, indicating > redfining of vars... > 2. created a new Dev-C++ DLL project, mamed dblib.. > 3. added to include folders: 'freetds\include' and 'freetds\win32\'/ > 4. added to library path: 'freetds\win32\dev-cpp'. > 5. on c/c++ compiler varibales added definition: > '_FREETDS_LIBRARY_SOURCE' ('-D_FREETDS_LIBRARY_SOURCE). > 6. on linker varibale added -lFreeTDS and chaged > '--no-export-all-symbols' to '--export-all-symbols'. The problem here is that your project should include libTDS files, not link to FreeTDS.dll which is an ODBC driver and contains code you don't need. > 7. builded, got the dll, but again, bothring warning of var getting > redefine. > > thats it, > any ideas on these warnings? are the critical? > > thanks I don't know... try to post them... freddy77 _______________________________________________ FreeTDS mailing list [email protected] http://lists.ibiblio.org/mailman/listinfo/freetds