I used the latest source code tarball http://www.sqlite.org/sqlite-amalgamation-3.6.14.1.tar.gz and compiled it in Windows-based Tornado 2.2. It uses a so-called 'SIMNT gnu' toolchain for compilation, version unknown.
My problem is when compiling the shell.c file, it prompted that 'sys/resource.h' is missing, and when compiling sqlite3.c, no header file missing is reported, however, some varibles are reported undeclared. I totally have no idea what they are and how they come. I just wonder if there is a simple way that i can make this code work. It nearly drives me crazy. Here is part of the prompt given by the compiler: ccsimpc -g -mpentium -ansi -fno-builtin -fno-defer-pop -I. -ID:\Tornado2.2\target\h\ -ID:\ Tornado2.2\host\x86-win32\include\win32 -DCPU=SIMNT -DTOOL_FAMILY=gnu -DTOOL=gnu -c ..\sql ite3.c ..\sqlite3.c: In function `pthreadMutexAlloc': ..\sqlite3.c:14562: `PTHREAD_MUTEX_RECURSIVE' undeclared (first use in this function) ..\sqlite3.c:14562: (Each undeclared identifier is reported only once ..\sqlite3.c:14562: for each function it appears in.) ..\sqlite3.c: In function `sqliteErrorFromPosixError': ..\sqlite3.c:21256: `ESTALE' undeclared (first use in this function) ..\sqlite3.c: In function `seekAndWrite': ..\sqlite3.c:23592: warning: passing arg 2 of `write' discards qualifiers from pointer tar get type ..\sqlite3.c: In function `getTempname': ..\sqlite3.c:24435: warning: passing arg 1 of `stat' discards qualifiers from pointer targ et type ..\sqlite3.c: In function `unixOpen': ..\sqlite3.c:24585: warning: passing arg 1 of `unlink' discards qualifiers from pointer ta rget type ..\sqlite3.c: In function `unixDelete': ..\sqlite3.c:24664: warning: passing arg 1 of `unlink' discards qualifiers from pointer ta rget type ..\sqlite3.c: In function `unixAccess': ..\sqlite3.c:24708: `F_OK' undeclared (first use in this function) ..\sqlite3.c:24711: `W_OK' undeclared (first use in this function) ..\sqlite3.c:24711: `R_OK' undeclared (first use in this function) ..\sqlite3.c: In function `unixDlOpen': ..\sqlite3.c:24774: `RTLD_NOW' undeclared (first use in this function) ..\sqlite3.c:24774: `RTLD_GLOBAL' undeclared (first use in this function) ..\sqlite3.c:24774: warning: return makes pointer from integer without a cast ..\sqlite3.c: In function `unixDlError': ..\sqlite3.c:24788: warning: assignment makes pointer from integer without a cast ..\sqlite3.c: In function `unixDlSym': ..\sqlite3.c:24814: `dlsym' undeclared (first use in this function) ..\sqlite3.c: In function `unixRandomness': ..\sqlite3.c:24851: too few arguments to function `open' ..\sqlite3.c: In function `unixCurrentTime': ..\sqlite3.c:24923: storage size of `sNow' isn't known make: *** [sqlite3.o] Error 0x1 It might be disturbing, and so it is to me. Hope you can help me out here. Thank you all. Shiwen On Thu, May 21, 2009 at 5:36 PM, Simon Slavin <slav...@hearsay.demon.co.uk>wrote: > > On 21 May 2009, at 7:36am, 张世闻 wrote: > > > When directly > > compiled the source code downloaded from the official site in > > VxWorks' IDE > > Tornado, > > Which compiler does that IDE use to compile ? GCC ? Which version ? > Is the problem covered in > > http://www.xs4all.nl/~borkhuis/vxworks/vxw_pt1.html > > > I kept receiving messages of certain header files missing. > > Can you list a couple of examples ? Do they have no equivalent under > VxWorks ? > > A quick Google suggests that other people have had trouble doing this > and that the solution isn't an obvious one. > > Simon. > _______________________________________________ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users