> COMPILE OUTPUT------------- > # cc t2.c
Why, are you running this as root?.. > /tmp//ccdm8869.o(.text+0x1c): In function `main': > : undefined reference to `db_create' Isn't this message rather obvious? can you not read or something? > /tmp//ccdm8869.o(.text+0x32): In function `main': > : undefined reference to `db_strerror' > collect2: ld returned 1 exit status You're not linking with the shared db library... $ gcc -I/usr/local/include/db4 -o t2 t2.cc -l/usr/local/lib -ldb Last time I checked, This mailing list isn't for people learning C.. Go buy yourself a book kid.. -Nix Fan.