-   Programming (
-   -   Linking to shared libraries? (

Griffon26 10-20-2001 08:51 AM

Linking to shared libraries?
I'm trying to link with the curses library.

But when I do:

ld -o test test.o -lcurses

It responds with:
ld: warning: cannot find entry symbol _start; defaulting to 08048260

And when I try to start the resulting executable, I get:
bash: ./test: No such file or directory

What am I doing wrong?

Griffon26 10-20-2001 05:29 PM

Still don't know what I did wrong, but if I let gcc do the linking, there's no problem.

gcc -o test test.c -lcurses

All times are GMT -5. The time now is 03:42 PM.