delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/09/25/05:39:04

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <39CF1D94.B072729@cdotb.ernet.in>
Date: Mon, 25 Sep 2000 15:10:36 +0530
From: "P.S.Ravi Kiran" <psrk AT cdotb DOT ernet DOT in>
X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-5.0 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: cygwin AT sourceware DOT cygnus DOT com
Subject: problems in linking

hai,

        I am Ravi Kiran, a Research Engineer from c-dot India. 
I am woking on linux platform and I have to export my code
to a Mc68302 basedcard. So I got the bin-utils,gcc,newlib as you said
in
the webpage, and compiled for the target m68k-elf.
I got the binaries correctly and also I could compile my files
well. but when linking, it is giving the following errors in 
the compiler sources.

/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'

can u please tell me what I can do with that error ?

And also there is one more problem that I have a function 
written in C like this.

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 "
I have some more functions written in assembly that the linker
was un-able to link them to C functions.

So please help me  in resolving these 

Thank you......
bye........



-- 
                /~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\
               | P.S.Ravi Kiran                |
               | C-DOT, 71/1 Miller Road,      |
               | BANGALORE -52.                |
               | Ph. 091-080-2263399,ext-292   |  
               \ email:  psrk AT cdotb DOT ernet DOT in   /    
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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