🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.sys.pc-unix
Article #1026

Re: curses.h - help me!

#1026
From: al... Janusz A. Urbanowicz
Date: Thu, 26 Dec 1996 00:00
44 lines
1938 bytes
In article <01bbf1de$93ec6f00$0100007f@wegorz> "Wegorz" <rajcza...@mvax.ci.pwr.wroc.pl> writes:

	   Czesc i Wesolego Karpia!
   Mam problem: musze napisac program na unixa
   z wykorzystaniem biblioteki curses. Aha, mam Slacka 3.1.
   Jak zwykle zaczelem od najprostszego programu, jaki moze byc:

   #include <stdlib.h>
   #include <stdio.h>
   #include <curses.h>

   void main (void)
   {  
	   initscr();
	   move(LINES/2-1,COLS/2-4);
	   addstr("Bulls");
	   refresh();
	   addstr("Eye");
	   refresh();
	   endwin(); 
   }

   No wlasnie, teraz trudniejszy problem, po zastosowaniu:

   >gcc -lncurses sesb.c

   wyplulo mi:
   /tmp/cca001291.o: In function `main':
   /tmp/cca001291.o(.text+0x6a): undefined reference to `__waddbytes'
   /tmp/cca001291.o(.text+0x9d): undefined reference to `__waddbytes'


Ciekwostka, skompilowałem toto na slacku 3.0 i 3.1 bez żadnego problemu i 
działa. Kompilowałem tak jak ty,  gcc foo.c -lncurses . Przejrzyj swoją
instlację C. Może coś z libc - ale u mnie na standardowej z 3.1 poszło.

Alex

-- 
Janusz A. Urbanowicz, student of physics, Amiga user |finger for PGP&Geek Code
administrator of eris.phys.uni.torun.pl and pec.torun.pl domain
http://eris.phys.uni.torun.pl/~alex/ | 'To stay young, / To save the world, /
Break the mirror' -- Nanao Sakaki 'Break the mirror'
Technical Details
Message-ID: <m3wwu59o3q.fsf@eris.phys.uni.torun.pl>
Path: mbox-mo1.pugleaf.net!unknown!not-for-mail
References: <01bbf1de$93ec6f00$0100007f@wegorz>

Show Full Headers
Complete Article Headers
From: al...@eris.phys.uni.torun.pl (Janusz A. Urbanowicz)
Subject: Re: curses.h - help me!
Date: 1996/12/26
Message-ID: <m3wwu59o3q.fsf@eris.phys.uni.torun.pl>
X-Deja-AN: 206150060
references: <01bbf1de$93ec6f00$0100007f@wegorz>
to: "Wegorz" <rajcza...@mvax.ci.pwr.wroc.pl>
organization: Ko³o Naukowe Studentów Fizyki
 Uniwersytetu Miko³aja Kopernika
mime-version: 1.0
newsgroups: pl.comp.sys.pc-unix,pl.comp.sys.pc-unix.linux
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit