Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* HW libs?
@ 1998-08-10 22:56 Larry Creech
  1998-08-11  6:08 ` Jochen Kuepper
  0 siblings, 1 reply; 3+ messages in thread
From: Larry Creech @ 1998-08-10 22:56 UTC (permalink / raw)
  To: axp-list

Is there a flag I'm missing to get this to link?

g++  -O2 -o cRadio main.o hardware.o conf.o options.o timer.o cRadio.o 
alarm.o aclock.o -I/usr/lib/qt/include -lqt -L/usr/X11R6/lib
hardware.o: In function `rtrack::cardWrite(int)':
hardware.cpp(.text+0x2a4): undefined reference to `_outb(unsigned char, 
unsigned long)'
hardware.cpp(.text+0x2a8): undefined reference to `_outb(unsigned char, 
unsigned long)'
hardware.o: In function `rtrack::isTuned(void)':
hardware.cpp(.text+0x7d8): undefined reference to `_inb(unsigned long)'
hardware.cpp(.text+0x7dc): undefined reference to `_inb(unsigned long)'

This is included and defined in /usr/include/asm/io.h: 
 
extern unsigned int     _inb (unsigned long port);
#ifndef inb
# define inb(p)         _inb((p))
...
extern void             _outb (unsigned char b,unsigned long port);
#ifndef outb
# define outb(b,p)      _outb((b),(p))
... 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: HW libs?
  1998-08-10 22:56 HW libs? Larry Creech
@ 1998-08-11  6:08 ` Jochen Kuepper
  1998-08-11  7:12   ` Richard Henderson
  0 siblings, 1 reply; 3+ messages in thread
From: Jochen Kuepper @ 1998-08-11  6:08 UTC (permalink / raw)
  To: axp-list, Larry Creech

On Tue, 11 Aug 1998 Larry Creech wrote:
>Is there a flag I'm missing to get this to link?
>
>g++  -O2 -o cRadio main.o hardware.o conf.o options.o timer.o cRadio.o 
>alarm.o aclock.o -I/usr/lib/qt/include -lqt -L/usr/X11R6/lib
>hardware.o: In function `rtrack::cardWrite(int)':
>hardware.cpp(.text+0x2a4): undefined reference to `_outb(unsigned char, 
>unsigned long)'
>hardware.cpp(.text+0x2a8): undefined reference to `_outb(unsigned char, 
>unsigned long)'
>hardware.o: In function `rtrack::isTuned(void)':
>hardware.cpp(.text+0x7d8): undefined reference to `_inb(unsigned long)'
>hardware.cpp(.text+0x7dc): undefined reference to `_inb(unsigned long)'

Heve you compiled all sources with optimization ( -O2 ) turned on ?
IIRC that's needed for that asm/io stuff.

Greetings,
Jochen
-----------------------------------------------------------------------
  Jochen K"upper

  Heinrich-Heine-Universit"at D"usseldorf   jochen@uni-duesseldorf.de
  Institut f"ur Physikalische Chemie I
  Universit"atsstr. 1, Geb 26.43 Raum 02.29    phone ++49-211-8113681
  40225 D"usseldorf                            fax   ++49-211-8115195
  Germany             http://www-public.rz.uni-duesseldorf.de/~jochen
-----------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: HW libs?
  1998-08-11  6:08 ` Jochen Kuepper
@ 1998-08-11  7:12   ` Richard Henderson
  0 siblings, 0 replies; 3+ messages in thread
From: Richard Henderson @ 1998-08-11  7:12 UTC (permalink / raw)
  To: jochen, axp-list, Larry Creech

On Tue, May 18, 48410 at 06:45:44AM +0200, Jochen Kuepper wrote:
> >hardware.o: In function `rtrack::cardWrite(int)':
> >hardware.cpp(.text+0x2a4): undefined reference to `_outb(unsigned char, 

Hum.  Seems as if there is a missing extern "c" wrapper in <sys/io.h>.


r~


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1998-08-11  7:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-08-10 22:56 HW libs? Larry Creech
1998-08-11  6:08 ` Jochen Kuepper
1998-08-11  7:12   ` Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox