Hi All,
Sorry if this has been covered before but I really need some help getting
Sqlite to compile into my project.
I develop in 'C' within the Windows version of the Eclipse Environement
producing embedded systems focused on the Motorola ColdFire Processors
specifically the MCF5282.
The target operating system is The uC/OS which is a preemptive multitasking
RTOS.
I was hoping it was as simple as taking the amalgamated source file and
simply adding it into my project and then adding some compile flags within the
project setup... but it seems not as I get numerous errors kicked out seemingly
to do with pthread_mutex....
I'm guessing I just need some config Flags but have no clue what they could
all be... I've looked through the unix make optionsand the configure file from
one of the other downloads but have got a spot lost...
Would hugely appreciate some help...
Beneath is a portion of whats fired out at compile time...
Many thanks
Justin.
'Building file: ../sqlite3.c'
'Invoking: GNU C Compiler'
m68k-elf-gcc -m5206e -O2 -DSQLITE_OMIT_LOAD_EXTENSION -gdwarf-2
-I"D:\Apps\Nburn\include" -I"D:\Apps\Nburn\MOD5282\include"
-I"D:\Apps\Nburn\gcc-m68k\m68k-elf\include"
-I"D:\Apps\Nburn\gcc-m68k\lib\gcc\m68k-elf\3.4.2\include"
-IE:/CDev/Embedded/Netburner/5282/Workspace/iControlv1/include -Wall -c
-fmessage-length=0 -MMD -MP -MF"sqlite3.d" -MT"sqlite3.d" -DMOD5282
"../sqlite3.c" -o"sqlite3.o"
../sqlite3.c:12911: error: parse error before "pthread_mutex_t"
../sqlite3.c:12911: warning: no semicolon at end of struct or union
../sqlite3.c:12914: error: parse error before "owner"
../sqlite3.c:12914: warning: type defaults to `int' in declaration of `owner'
../sqlite3.c:12914: warning: data definition has no type or storage class
../sqlite3.c: In function `sqlite3_mutex_alloc':
../sqlite3.c:12962: error: elements of array `staticMutexes' have incomplete
type
../sqlite3.c:12963: error: `PTHREAD_MUTEX_INITIALIZER' undeclared (first use
in this function)
../sqlite3.c:12963: error: (Each undeclared identifier is reported only once
../sqlite3.c:12963: error: for each function it appears in.)
../sqlite3.c:12963: warning: excess elements in struct initializer
../sqlite3.c:12963: warning: (near initialization for `staticMutexes[0]')
../
---------------------------------
Looking for last minute shopping deals? Find them fast with Yahoo! Search.
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users