Hi Dan, I have managed to build a single threaded lib
Building libsqlite.lib Compiled source code in sqlite_source as before but this time with SINGLE threading, STATIC linking to standard libs and debug switched on (-MLd) Linked these objects into a static lib with the name libsqlite.lib . Building test.exe Compiled the example program with same options as above (-MLd) Linked with these default libs: libcd.lib libcid.lib libcpd.lib kernel32.lib oldnames.lib (ie the ST DEBUG ones) and libsqlite.lib or course. Specified -NODEFAULTLIBS as link option. And it works fine. No link errors. But it would be nice to be able to compile it as a static lib that links dynamically with the default libs. Richard > Richard, > > Im interested in statically linking the SQLITE DB within the executable > rather than an external DLL, if you've got any suggestions they would be > gratefully received. > > I've got my VC6 program to compile with the linking to a external DLL under > the release profile, under projects/settings/linking tab. > > I've not seen these symbols appear when I've tried to compile it and > everything runs fine. > > You want to poke around > http://cvs.sourceforge.net/viewcvs.py/lookoutpx/lookoutpx/ as they use > SQLITE in their VC project, perhaps their DSW shows up something(?) > > FYI, whenever a question relating to the MSVC studio and SQLITE appears on > this list it is met with silence, so don't hold out for an answer. > > Best of luck, > > Dan > Hi > > I am having problems building SQLite with msvc6 (linux build went fine). So > this is probably due to my total lack of experience with MS compilers. > > Compiling source code in sqlite_source compiles fine. I built this into a > static lib with multithreading, dynamic linking and debug switched on. > > I then built the example c program on the quick-start page and linked it > against my sqlitelib.lib and the standard libs msvcrtd.lib, msvcprtd.lib, > kernel32.lib and oldnames.lib > > This results in 2 link errors: > > unresolved external symbol __pctype > unresolved external symbol ___mb_cur_max > > These both seem to be referred to in stdtypes.h but are obviously not > contained in the standard c library (msvcrtd.lib). > > Can anyone tell me which libs I should be linking against to pick up these > symbols? > > Thanks, > > Richard Forrest > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]