undefined reference to ... when using inline assembly in C
I am tring to use assembly inline in C, but errors occured when compiling, the messages are as below, could anyone tell me what' s the causes and how to corrct it?
The code is:
mdct( long *in, long *out) /*sorry, I forget the type, it' s long*/
{
__asm__("
movea in, %a1;
movea out, %a2;
...
");
}
Thank you!
/HHCF5249-HDDMP3-R3/uClinux-dist/lib/zlib -o MP3_ENC main.o bitstream.o formatBitstream.o l3bitstream.o layer3.o l3loop.o tables.o error.o huffman.o l3mdct.o
portableio.o ieeefloat.o l3subband.o reservoir.o wave.o -lm -lc
MP3_ENC.elf2flt: In function `mdct':
/HHCF5249-HDDMP3-R3/uClinux-dist/user/MP3ENC/l3mdct.c:686: undefined reference to `out'
/HHCF5249-HDDMP3-R3/uClinux-dist/user/MP3ENC/l3mdct.c:686: undefined reference to `in'
Last edited by Annie0716; 07-29-2004 at 10:02 PM.
|