Mail Archives: djgpp/2000/09/26/02:04:58
> 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 -