[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [CPROG] undefined reference to?



On Wed, 2001-12-19 at 15:43, Hans Sandén wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hej,
> 
> Jag försöker använda mig av funktionerna i curses.h men får hela tiden 
> undefined reference to <funktionsnamn>.
> 
> Vad beror detta på?
> 
> / Hans
> - -- 
> - -------------------------------------------------------------------------
> 
>      Hans Sandén             E-mail: sslug@sslug
>      Rynnings väg 24                   sslug@sslug
>      SE-360 42 Braås                   sslug@sslug
>      Sweden
> 
>              Member of HSC #1779, RTC #282, SMHSC
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.6 (GNU/Linux)
> Comment: For info see http://www.gnupg.org
> 
> iD8DBQE8IKd5HHZCtNfybHsRAlQlAJ96BGlW5ZqlSiyf86RD83IB3P5rzwCfUevF
> TBR7CZax14myWAEOr9IXG/s=
> =z7Br
> -----END PGP SIGNATURE-----
> 

Du måste länka in library't också. Prova att använda 

gcc -o outfile -lncurses

Jag kommer inte ihåg vad library't heter men efter "l"'et skall där stå
vad libraryt heter utan "lib". 

Prova det.

-- 
mvh
 Martin Bertilsson Haagen
 sslug@sslug

 MBH Konsult
 Tel. +46 46 120789 Cel. +46 707 671717 Fax. +46 707 113567
 Kämnärsv. 7G/217, 226 46 Lund, Sweden

 Embedded systems, programming, databases and systems administration.



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:09 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *