hi everyone,

recently I crosscompiled sqlite3.3.5 for my armlinux.
I have got some basic knowlage of using it now. 

i wrote a c program which just open a database ,print table values and then 
exit.

to write the Makefile, i use 
$(EXE):$(OBJS)
    ./libtool --mode=link $(CC) $(LDFLAGS) $(LIBS) -o $@ $(OBJS)

i use this "libtool" which is used to compile shell.c in the sqlite-3.3.5. and 
it works. 

the question is why i can not use the following makefile?
$(EXE):$(OBJS)
    $(CC) $(LDFLAGS) $(LIBS) -o $@ $(OBJS)

it gives a compile error sais the sqlite fuctions cannot be found, though i 
included the sqlite.h in my simple program.

what is the use of libtool? 

hope some one give me some directions.
thanks



 

Reply via email to