hi, i am trying to get a smaller sqlite lib by adding sqlite_omit_xx defines. but it failed at the compiler time.
steps: 1, in 'Makefile.in', omit macro is added: TCC += -DSQLITE_OMIT_ALTERTABLE=1 2, run '(top)/configure' and 'make' in cygwin, 3, i got the fowllowing error: ./.libs/libsqlite3.a(parse.o): In function `sqlite3Parser': /home/ww1/sqlite-3.3.17/bld/parse.y:1066: undefined reference to `_sqlite3AlterB eginAddColumn' /home/ww1/sqlite-3.3.17/bld/parse.y:1063: undefined reference to `_sqlite3AlterF inishAddColumn' /home/ww1/sqlite-3.3.17/bld/parse.y:1060: undefined reference to `_sqlite3AlterR enameTable' it seems that parse.y is not stripped with the omit define (SQLITE_OMIT_ALTERTABLE) so that parse.c still contains the unwanted symbols. it is said that the omit defines must also be fed to lemon tool to gererate the correct parse.c, but i failed to find out where it is. appreciation will be given for any hint. wang