I used the line you gave and got the following error Actually I used "gcc -I/usr/local/include/db -o t2 t2.c -l/usr/local/lib -ldb Got /usr/bin/ld: cannot find -l/usr/local/lib collect2: ld returned 1 exit status
I'm running as root because the machine is not on the net and I'm just trying to get the code set up so I can move on with the program . I'm under a lot of preasure so I posted to the list I appologize if its of topic. But wanted to get your oppinion because a lot of people have trouble with it. I received the same error as below on a slackware system. I just though you might be able to respond to me and help me out this one time. I really need to get moving on this. I don't enjoy a nice life where I'm left alone to learn and study at my leasure :| I appologize for not knowing. LD keeps saying it can not find the path... I tried a number of combinatons but couldn't get it. You have always responded in the past and I was glad to see that you responded. I'v been searching the net and IRC for a long time trying to get going on this. Any help would be appreciate. I appologize for being off topic and under-learned. > 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.