1/1

|
Compiling C code for uClinux on OR1200
by Unknown on Sep 14, 2004 |
Not available! | ||
|
Hi all
I am having problems compiling code for OR1200 using the or32-uclinux toolchain. The problem lies in the linking stage, I always end up getting lots of undefined references to various functions such as the math functions like _sqrt and __divsi3 (which I know are to do with lack of FPU and I need a compiler switch) but also things like _stdin and _fprintf. In addition many of the functions defined in the program throw up undefined references such as _BitIO_Init. Compiling only works fine (using or32-uclinux-gcc -c) but I can never get past the object stage. I realise this is likely a very basic problem with libraries but I've included the usual libsupport.a and uclibc.a with no result. I've tried following the messages posted previously with similar problems but I'm still unable to figure it out. If I compile the same code for Linux on i386 (to run on my desktop) it works fine using gcc to do the compilation and linking in one go. Has anyone managed to get a DCT/IDCT or other multimedia related algorithm running on uClinux under OR1k, and if so can I find the binary anywhere? Ideally I'd like to get Tremor (Ogg-Vorbis fixed point decoder) running on the core with uClinux. Thanks Paul. |
|||
|
Compiling C code for uClinux on OR1200
by Unknown on Sep 17, 2004 |
Not available! | ||
|
* paul_morga@yahoo.co.uk (paul_morga@yahoo.co.uk) wrote:
Hi all
I am having problems compiling code for OR1200 using the or32-uclinux toolchain. The problem lies in the linking stage, I always end up getting lots of undefined references to various functions such as the math functions like _sqrt and __divsi3 (which I know are to do with lack of FPU and I need a compiler switch) but also things like _stdin and _fprintf. In addition many of the functions defined in the program throw up undefined references such as _BitIO_Init. do you link with libgcc.a ? regards, p. |
|||
1/1

