delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/09/26/02:04:58

Date: Tue, 26 Sep 2000 09:04:22 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: psrk AT cdotb DOT ernet DOT in
Message-Id: <2950-Tue26Sep2000090422+0300-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.2.emacs20_6 I) and Blat ver 1.8.5h
CC: djgpp AT delorie DOT com
In-reply-to: <39CF1CC8.FFBF8A78@cdotb.ernet.in> (psrk@cdotb.ernet.in)
Subject: Re: problems in linking
References: <39CF1CC8 DOT FFBF8A78 AT cdotb DOT ernet DOT in>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> Date: Mon, 25 Sep 2000 15:07:12 +0530
> From: "P.S.Ravi Kiran" <psrk AT cdotb DOT ernet DOT in>
> 
> /home/psrk/temp/build/m68k-coff/libgloss/m68k/../../../../src/libgloss/m68k/../open.c:28:
> undefined reference to `__errno'
> /home/psrk/m68k/m68k-coff/lib/libidp.a(lseek.o): In function `lseek':
> /home/psrk/temp/build/m68k-coff/libgloss/m68k/../../../../src/libgloss/m68k/../lseek.c:28:
> undefined reference to `__errno'

It looks like you are missing some library, which should define
__errno, or perhaps some header that has a #define for it.

I never used that cross-compiler myself, so I'm afraid I cannot tell
you what to do to fix this.  Can you contact the author of the
package, or its maintainer(s)?  Did you look for a FAQ or build
instructions, or a list of known problems somewhere in the
distribution?

> int disable()
> {
>   register temp;
>   asm(" move.w %sr,temp");
>   asm("	andi   #61695,%sr");
>   return(temp);
> }
> 
> The compiler is not giving any warning, but the linker says 
> "undefined refarence to temp " in the asm statement.
> I tried with _temp and it says
> "undefined refarence to _temp "

Try using temp in "register temp" but _temp in the asm.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019