From: ylauriault@commgw
Subject: Re: Problems Linking Curses under OSF/1
Date: 17 Feb 95 10:14:09 -0500 [thread overview]
Message-ID: <1995Feb17.101409.88@commgw> (raw)
In-Reply-To: 3i1hei$jd2@spool.mu.edu
In article <3i1hei$jd2@spool.mu.edu>, stevax@vinny.csd.mu.edu (Peter L. Buschman) writes:
> I'm sure this problem has an utterly simple fix, but I'm at a loss.
> I'm trying to program using the curses library. Under a VMS system,
> the following program compiles just fine, but on the OSF/1 system,
> I get linker errors.
>
> Can anyone help me with this?
>
> The program is: (minimal curses program)
>
> : #include <curses.h>
> :
> : main()
> : {
> : initscr();
> : box(stdscr,'%','%');
> : refresh();
> : }
>
> And when compiling, the errors are:
>
> : ld:
> : Unresolved:
> : initscr
> : box
> : stdscr
> : wrefresh
You need to include the 'curses' when you link evertyhing together.
Use the following on your 'cc' command:
cc prog.c -o prog -lcurses
This causes the 'loader' to look for external references into
libcurses.a
Read the MAN page on cc for more info.
Yvon Lauriault
National Library of Canada
E-Mail: Yvon.Lauriault@nlc-bnc.ca
>
>
> --
> %%
> :. __________ _______ _________ %% 97buschmanp@alma.edu
> :::. | || | \ | || | || \ %% (|) |\/| /\
> :::::. | ||_|_/ | || | ||--< %% :. .--.
> :::::::. _|__||_ _|__||___| _|__||__/ %% :::. `--.infonia!
> :::::::::. %%%%%%%:.`--' %%%%%%%%%%%%
> :::::::::::. Peter L. Buschman, Alma College :::::::. %%
> :::::::::::::. - Computer Science Major - :::::::::. %%
>
prev parent reply other threads:[~1995-02-17 15:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-02-17 6:58 Problems Linking Curses under OSF/1 Peter L. Buschman
1995-02-17 12:17 ` Charles M Richmond
1995-02-17 15:14 ` ylauriault [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox