If I understand the question.. It seems that you have no main() on that
source file.

If you want to compile only (without linking), you should run:

g++ -c sqlite3.o sqlite3.c

and then link that .o to the object file that holds your main().

Regards!

On 10/16/2010 11:56 AM, Will Bonney wrote:
> Hello, I am new to this list.
> 
> 
> I am attempting to compile the amalgamation of SQLite3 and get the  
> following error:
> 
> 
> 
> 
> $ gcc sqlite3.c
> Undefined symbols:
>    "_main", referenced from:
>        start in crt1.10.5.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> $
> 
> 
> How do I get this to compile?
> 
> 
> Many thanks  -Will
> _______________________________________________
> 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

Reply via email to