[comp.sys.3b1] COMPILER PROBLEMS

forrie@morwyn.UUCP (Forrie Aldrich) (05/08/91)

I resolved my former curses problem by reloading the Development
set package disk.  Now whenever I compile programs with curses, 
the loader complains of common symbols being redefined all over
the place.

Next:  when it finally tries to finish it's loading, the loader will
complain that it can't find the symbol 'setvbuf' or '_doprnt' from
libcurses.a.  Now I _know_ that these symbols are in libc.a, but 
for some reason, it's not finding them there...

To try and remedy the situation, I TRIED to use the SHLIB program from
the OSU-CIS archives, and it worked according to directions the author
sent me, but when I went to compile programs, I had tons of problems,
so I promptly undid that change.

HELP!

Thanks,

Forrie
-- 
--------------------=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--------------------
Forrest Aldrich, Jr.|   ...uunet!eci!morwyn!forrie       |forrie@morywn.UUCP
                    |  ...uunet!eci!zinn!morwyn!forrie   | 
CREATIVE CONNECTIONS|...uunet!unhd!unhtel!morwyn!forrie  |Graphic Illustration
------------------\-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-/------------------
                   \___ PO Box 1541 - Dover, NH  03820 ___/                   

Mariusz@fbits.ttank.com (Mariusz Stanczak) (05/09/91)

In article <99@morwyn.UUCP>, forrie@morwyn.UUCP (Forrie Aldrich) writes:
> libcurses.a.  Now I _know_ that these symbols are in libc.a, but 
> for some reason, it's not finding them there...

Just explicitly add -lc after all others in your `ld' line.  A "second"
pass through it should fix your problem.

-Mariusz
-- 
INET: Mariusz@fbits.ttank.com
CIS : 71601.2430@compuserve.com
UUCP: ..!uunet!zardoz!ttank!fbits!Mariusz