Xref: utzoo unix-pc.general:910 comp.sys.att:3609 Path: utzoo!utgpu!water!watmath!clyde!att!mtunx!icus!limbic!gil From: gil@limbic.UUCP (Gil Kloepfer Jr.) Newsgroups: unix-pc.general,comp.sys.att Subject: Re: shlib and curses on unix pc Summary: A kludge .. but not necessarily a good one... Keywords: unixpc shlib tam curses Message-ID: <148@limbic.UUCP> Date: 25 Jun 88 21:41:54 GMT References: <559@rphroy.UUCP> <201@elgar.UUCP> Reply-To: gil@limbic.UUCP (Gil Kloepfer Jr.) Organization: ICUS Software Systems, Islip, NY Lines: 32 In article <201@elgar.UUCP> ford@kenobi.cts.com (Mike "Ford" Ditto) writes: |>In article <559@rphroy.UUCP> tkacik@rphroy.UUCP (Tom Tkacik) writes: |>>Has anyone managed to compile a program that uses curses, |>>with the shared library. I tried it and it does not seem to work. |> |>Who ever said it would? Nah, it doesn't work unless you make a kludged shlib.ifile. You can copy the shlib.ifile to say, shlib-c.ifile, and remove all the lines from the shlib-c.ifile that are duplicates in curses. Then link with: $ ld /lib/crt0s.o /lib/shlib-c.ifile *.o -lcurses This should work so long as you don't need any tam stuff too (why would you need both I guess :-). I think I remember having to do it before to something (Lenny, remember what it was???) in order for it to link this way (I like using the shlib since the resultant object code is smaller). No guarantees on this (ie. this is semi-flameproof :-) .. but I believe I used it once and it works. REMEMBER!! DO NOT CHANGE "shlib" OR THE ORIGINAL "shlib.ifile" .. IF YOU DO, YOUR SYSTEM WILL DO ALMOST NOTHING! You will have to go to the floppies and do some other unmentionable kludging to get the system running again! +------------------------------------+----------------------------------------+ | Gil Kloepfer, Jr. | Net-Address: | | ICUS Software Systems | {boulder,talcott}!icus!limbic!gil | | P.O. Box 1 | Voice-net: (516) 968-6860 | | Islip Terrace, New York 11752 | Othernet: gil@limbic.UUCP | +------------------------------------+----------------------------------------+