[Lugge] Re: Problemi con gcc

  • From: "Roberto A. Foglietta" <fogliettar@xxxxxxxxxxxxxxxxxx>
  • To: lugge@xxxxxxxxxxxxx
  • Date: Fri, 23 Nov 2001 14:10:11 -0500

Stefano Roselli wrote:
> 
> Salve a tutti,
> io sto cercando di compilare un semplice file di accesso alla parallela:
> "Par.c"

 [cut]
 
> compilando con "gcc Par.c" mi da il seguente messaggio di errore:
> 
> /tmp/ccabJrAi.o: In function `main':
> /tmp/ccabJrAi.o(.text+0x58): undefined reference to `inb'
> collect2: ld returned 1 exit status

 Devi proprio indicarle le librerie

 gcc -o par par.c -L/usr/lib

-- 
  ,__    ,_     ,___    .-------=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-.
  ||_)   ||\    ||_    /     Proud Member & Master of the LUGGE    |
  || \   ||¯\   ||¯      e-mail  : mailto:robang@xxxxxxxxx         |
  ¯¯  ¯° ¯¯  ¯° ¯¯  °    linuxgrp: http://lugge.ziobudda.net       |
  Roberto A. Foglietta   homepage: http://digilander.iol.it/robang |
 \                       reg num : #219348 with the Linux Counter  |
  `--------------------=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-'
<========----------
 Prima di scrivere in m-list per favore leggi il regolamento
 http://lugge.ziobudda.net/benvenuto.html



Other related posts: